CVE-2024-3653: Undertow core Undertow Missing Release Of Memory Vulnerability

MODERATE
Advisory Identifier: GHSA-ch7q-gpff-h9hp
CVSS 5.3
CWE-401
Published
Advisory Summary

CVE-2024-3653 is a MODERATE (CVSS 5.3) undertow missing release of memory vulnerability (CWE-401: Missing Release of Memory after Effective Lifetime) affecting Undertow core libraries in the Maven ecosystem. The issue involves undertow missing release of memory after effective lifetime vulnerability. Remediation is available by upgrading affected packages to version 2.3.15.Final, 2.2.34.Final.

CVE-2024-3653 at a Glance

CVE Identifier CVE-2024-3653
GHSA Identifier GHSA-ch7q-gpff-h9hp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-401: Missing Release of Memory after Effective Lifetime
Affected Product Undertow core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2024-3653

To remediate this vulnerability, upgrade all affected Undertow core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.undertow:undertow-core fixed: 2.3.15.Final
<dependency>
    <groupId>io.undertow</groupId>
    <artifactId>undertow-core</artifactId>
    <version>2.3.15.Final</version>
</dependency>
io.undertow:undertow-core fixed: 2.2.34.Final
<dependency>
    <groupId>io.undertow</groupId>
    <artifactId>undertow-core</artifactId>
    <version>2.2.34.Final</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.undertow

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-3653, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.undertow

Analyze the terminal output to locate any version of Undertow core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.15.Final), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.undertow command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-401: Missing Release of Memory after Effective Lifetime, where the product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. In Undertow core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was found in Undertow. This issue requires enabling the learning-push handler in the server's config, which is disabled by default, leaving the maxAge config in the handler unconfigured. The default is -1, which makes the handler vulnerable. If someone overwrites that config, the server is not subject to the attack. The attacker needs to be able to reach the server with a normal HTTP request.

CVE-2024-3653 Affected Undertow core Versions

2 component(s)
Fixed Versions:
2.3.15.Final2.2.34.Final
Product / Package Ecosystem Affected Versions Fixed Version
io.undertow:undertow-core
Maven
≥ 2.3.0.Alpha1
< 2.3.15.Final
2.3.15.Final
io.undertow:undertow-core
Maven
< 2.2.34.Final
2.2.34.Final

References

Frequently Asked Questions

What is CVE-2024-3653?
CVE-2024-3653 is a security vulnerability in Undertow core involving Undertow Missing Release of Memory after Effective Lifetime vulnerability under CWE-401: Missing Release of Memory after Effective Lifetime.
Which Undertow core versions are affected?
Affected versions include releases prior to 2.3.15.Final, 2.2.34.Final across affected packages: io.undertow:undertow-core.
What version fixes CVE-2024-3653?
Upgrading to 2.3.15.Final, 2.2.34.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is undertow-core affected?
Yes, io.undertow:undertow-core is affected in releases prior to 2.3.15.Final, 2.2.34.Final. Upgrade your dependency to 2.3.15.Final, 2.2.34.Final or later.
What is the CVSS score of CVE-2024-3653?
CVE-2024-3653 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2024-3653?
CVE-2024-3653 is classified under CWE-401: Missing Release of Memory after Effective Lifetime (The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.).
How can I check Maven dependencies for CVE-2024-3653?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.undertow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-ch7q-gpff-h9hp",
  "modified" : "2024-11-04T22:22:11Z",
  "published" : "2024-07-09T00:31:40Z",
  "aliases" : [ "CVE-2024-3653" ],
  "summary" : "Undertow Missing Release of Memory after Effective Lifetime vulnerability",
  "details" : "A vulnerability was found in Undertow. This issue requires enabling the learning-push handler in the server's config, which is disabled by default, leaving the maxAge config in the handler unconfigured. The default is -1, which makes the handler vulnerable. If someone overwrites that config, the server is not subject to the attack. The attacker needs to be able to reach the server with a normal HTTP request.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.undertow:undertow-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0.Alpha1"
      }, {
        "fixed" : "2.3.15.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.undertow:undertow-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.34.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3653"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/undertow-io/undertow/pull/1639"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/undertow-io/undertow/pull/1640"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/undertow-io/undertow/pull/1641"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4392"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5143"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5144"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5145"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:5147"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6437"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-3653"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2274437"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/undertow-io/undertow"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/UNDERTOW-2382"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-401" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-09T21:09:47Z",
    "nvd_published_at" : "2024-07-08T22:15:02Z"
  }
}