CVE-2024-47072 XStream is vulnerable to a Denial of Service attack due to stack overflow from a manipulated binary input stream

High 7.5 Published Updated

Remote attackers can cause application crashes via stack overflow in XStream when using the BinaryStreamDriver, requiring an upgrade to fix.

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-47072?

CVE-2024-47072 is a high-severity denial of service vulnerability in x-stream xstream, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

XStream is a simple library to serialize objects to XML and back again. This vulnerability may allow a remote attacker to terminate the application with a stack overflow error resulting in a denial of service only by manipulating the processed input stream when XStream is configured to use the BinaryStreamDriver. XStream 1.4.21 has been patched to detect the manipulation in the binary input stream causing the the stack overflow and raises an InputManipulationException instead. Users are advised to upgrade. Users unable to upgrade may catch the StackOverflowError in the client code calling XStream if XStream is configured to use the BinaryStreamDriver.

Weakness: CWE-502, CWE-121

Which versions are affected by CVE-2024-47072?

2 open source packages ship an affected version, including com.thoughtworks.xstream:xstream.

PackageAffectedFixed in
com.thoughtworks.xstream:xstream MavenAll versions1.4.21
com.thoughtworks.xstream:xstream MavenAll versions1.4.21
Linux distribution packages (34)
bea-stax SUSE:Enterprise Storage 7.1All versions1.2.0-150200.11.3.1
xstream SUSE:Enterprise Storage 7.1All versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions1.2.0-150200.11.3.1
bea-stax SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise Module for Development Tools 15 SP5All versions1.4.21-150200.3.28.1
xstream SUSE:Linux Enterprise Module for Development Tools 15 SP6All versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.4.21-150200.3.28.1
bea-stax SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.2.0-150200.11.3.1
xstream SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.4.21-150200.3.28.1
bea-stax SUSE:Manager Proxy 4.3All versions1.2.0-150200.11.3.1
bea-stax SUSE:Manager Server 4.3All versions1.2.0-150200.11.3.1
xstream SUSE:Manager Server Module 4.3All versions1.4.21-150200.3.28.1
bea-stax openSUSE:Leap 15.5All versions1.2.0-150200.11.3.1
xstream openSUSE:Leap 15.5All versions1.4.21-150200.3.28.1
bea-stax openSUSE:Leap 15.6All versions1.2.0-150200.11.3.1
xstream openSUSE:Leap 15.6All versions1.4.21-150200.3.28.1
xstream openSUSE:TumbleweedAll versions1.4.21-1.1

How do I fix CVE-2024-47072?

Upgrade com.thoughtworks.xstream:xstream to 1.4.21 or later.

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-47072 being exploited?

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

Sources

Also known as DEBIAN-CVE-2024-47072, GHSA-hfq9-hggm-c56q, OESA-2024-2400, RHLW-2026-f1a22cabc5a36f13, ROOT-APP-MAVEN-CVE-2024-47072, SUSE-SU-2024:4037-1 and 2 more.

Is CVE-2024-47072 in your software?

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

Check your SBOMs for free