CVE-2024-3653: Undertow core Undertow Missing Release Of Memory Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>2.3.15.Final</version>
</dependency>
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>2.2.34.Final</version>
</dependency>
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
CVE-2024-3653 Affected Undertow core Versions
2 component(s)| 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?
Which Undertow core versions are affected?
What version fixes CVE-2024-3653?
Is undertow-core affected?
What is the CVSS score of CVE-2024-3653?
What CWE is associated with CVE-2024-3653?
How can I check Maven dependencies for CVE-2024-3653?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}