CVE-2024-41172 Apache CXF: Unrestricted memory consumption in CXF HTTP clients

Medium 5.3 Published Updated

An attacker can cause memory exhaustion in applications using Apache CXF HTTP clients, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-41172?

CVE-2024-41172 is a medium-severity denial of service vulnerability in Apache Cxf, published on 19 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In versions of Apache CXF before 3.6.4 and 4.0.5 (3.5.x and lower versions are not impacted), a CXF HTTP client conduit may prevent HTTPClient instances from being garbage collected and it is possible that memory consumption will continue to increase, eventually causing the application to run out of memory

Weakness: CWE-401

Which versions are affected by CVE-2024-41172?

4 open source packages ship an affected version, including org.apache.cxf:cxf-rt-transports-http. It affects 1 product.

PackageAffectedFixed in
org.apache.cxf:cxf-rt-transports-http MavenFrom 3.6.03.6.4
org.apache.cxf:cxf-rt-transports-http MavenFrom 3.6.03.6.4
org.apache.cxf:cxf-rt-transports-http MavenFrom 4.0.04.0.5
org.apache.cxf:cxf-rt-transports-http MavenFrom 4.0.04.0.5

Products include Apache Cxf.

How do I fix CVE-2024-41172?

Upgrade org.apache.cxf:cxf-rt-transports-http to a fixed version for your release line: 3.6.4 or 4.0.5.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-41172 being exploited?

There is no known exploitation of CVE-2024-41172 in the wild and no public exploit code.

All Apache Cxf vulnerabilities

Sources

Also known as GHSA-4mgg-fqfq-64hg.

Is CVE-2024-41172 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free