CVEfocus › CVE database › CVE-2022-40151

CVE-2022-40151Stack Buffer Overflow in xstream

CVSS 6.5 MediumEPSS 1.3% (higher than 71% of CVEs)Published 2022-09-16Updated 2025-04-21Assigner: Google

Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.

CWE-121

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
2Fix pending
3Under investigation
9Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libxstream-javaFix pendingUBUNTU-CVE-2022-40151
Ubuntu 26.04libxstream-javaUnder investigationUBUNTU-CVE-2022-40151
Ubuntu 25.10libxstream-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-40151
Ubuntu 24.04libxstream-javaUnder investigationUBUNTU-CVE-2022-40151
Ubuntu 22.04libxstream-javaUnder investigationUBUNTU-CVE-2022-40151
Ubuntu 20.04libxstream-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-40151
Ubuntu 18.04libxstream-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-40151
Ubuntu 16.04libxstream-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-40151
Ubuntu 14.04libxstream-javaFix pendingUBUNTU-CVE-2022-40151
Debian 14libxstream-javaWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2022-40151
Debian 13libxstream-javaWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2022-40151
Debian 12libxstream-javaWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2022-40151
Red Hat Enterprise Linux 7xstreamWill not fix
Out of support scope
Red Hat Enterprise Linux 7xstream-javadocWill not fix
Out of support scope
Maven librarycom.thoughtworks.xstream:xstreamFixed1.4.20GHSA-f8cc-g7j8-xxpm

What the vendor says

As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.