Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.undertow/undertow-core
  4. ›
  5. CVE-2024-7885

CVE-2024-7885: Undertow vulnerable to Race Condition

August 21, 2024 (updated December 13, 2024)

A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same StringBuilder instance across multiple requests. This issue occurs when the parseProxyProtocolV1 method processes multiple requests on the same HTTP connection. As a result, different requests may share the same StringBuilder instance, potentially leading to information leakage between requests or responses. In some cases, a value from a previous request or response may be erroneously reused, which could lead to unintended data exposure. This issue primarily results in errors and connection termination but creates a risk of data leakage in multi-request environments.

References

  • access.redhat.com/errata/RHSA-2024:11023
  • access.redhat.com/errata/RHSA-2024:6508
  • access.redhat.com/errata/RHSA-2024:6883
  • access.redhat.com/errata/RHSA-2024:7441
  • access.redhat.com/errata/RHSA-2024:7442
  • access.redhat.com/errata/RHSA-2024:7735
  • access.redhat.com/errata/RHSA-2024:7736
  • access.redhat.com/security/cve/CVE-2024-7885
  • bugzilla.redhat.com/show_bug.cgi?id=2305290
  • github.com/advisories/GHSA-9623-mqmm-5rcf
  • github.com/undertow-io/undertow
  • github.com/undertow-io/undertow/blob/182e4ca1543c52f438b0244c930dca3d8b6e68e3/core/src/main/java/io/undertow/server/protocol/proxy/ProxyProtocolReadListener.java
  • github.com/undertow-io/undertow/commit/80c125e09068ac52ed0a9acde266ef12f8ed7ae1
  • github.com/undertow-io/undertow/commit/ce5182c37376982ef0abee34fce0d8c0aab0fab8
  • nvd.nist.gov/vuln/detail/CVE-2024-7885
  • security.netapp.com/advisory/ntap-20241011-0004

Code Behaviors & Features

Detect and mitigate CVE-2024-7885 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.0.Alpha1 before 2.3.17.Final, all versions before 2.2.36.Final

Fixed versions

  • 2.2.36.Final
  • 2.3.17.Final

Solution

Upgrade to versions 2.2.36.Final, 2.3.17.Final or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

maven/io.undertow/undertow-core/CVE-2024-7885.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.