Vulnerability · Published Sep 16, 2022 · Assigned by Google

CVE-2022-40151Stack Buffer Overflow in xstream

Medium 6.5

In plain English

A medium-severity stack buffer overflow in xstream from xstream. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)2.2%top 17.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libxstream-javano fix listedDEBIAN-CVE-2022-40151
Debian:13libxstream-javano fix listedDEBIAN-CVE-2022-40151
Debian:14libxstream-javano fix listedDEBIAN-CVE-2022-40151
Mavencom.thoughtworks.xstream:xstream1.4.20GHSA-f8cc-g7j8-xxpm
Ubuntu:22.04:LTSlibxstream-javano fix listedUBUNTU-CVE-2022-40151
Ubuntu:24.04:LTSlibxstream-javano fix listedUBUNTU-CVE-2022-40151
Ubuntu:25.10libxstream-javano fix listedUBUNTU-CVE-2022-40151
Ubuntu:26.04:LTSlibxstream-javano fix listedUBUNTU-CVE-2022-40151
Ubuntu:26.10libxstream-javano fix listedUBUNTU-CVE-2022-40151

Affected products (as reported)

VendorProductVersions
xstream xstream unspecified – through 1.4.19

Weakness: CWE-121 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References