Skip to content
Fencer Vulns
medium 6.5

CVE-2022-40151 json

Stack Buffer Overflow in xstream

published 2022-09-16 4 y ago modified 2026-06-17 4 mo ago also GHSA-f8cc-g7j8-xxpm , EUVD-2022-7616

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.2%
EPSS 2.2% chance of exploitation in 30 days, percentile 82%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven com.thoughtworks.xstream:xstream 1.4.20
  • xstream xstream 1.4.20
  • jenkins ocp tools 4.13 2.387.3.1684911776-3.el8
  • jenkins-2-plugins ocp tools 4.13 4.13.1684911916-1.el8

red hat advisories RHSA-2023:3299

  • xstream SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +11 more 1.4.20-150200.3.25.1

suse advisories SUSE-SU-2023:1673-1

  • xstream openSUSE Tumbleweed 1.4.20-1.1

opensuse advisories openSUSE-SU-2024:12796-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-40151 updated cvss 7.5

xstream: Xstream to serialise XML data was vulnerable to Denial of Service attacks

  • Red Hat Migration Toolkit for Runtimes xstream
    affected: no fix planned “Will not fix”
  • Red Hat build of Quarkus xstream
    affected: no fix available “Fix deferred”
  • Red Hat Data Grid 8 xstream
    affected: no fix planned “Will not fix”
  • Red Hat Decision Manager 7 xstream Red Hat Enterprise Linux 7 xstream, xstream-javadoc
    affected: no fix planned “Out of support scope”
  • Red Hat Fuse 7 xstream
    affected: no fix planned “Will not fix”
  • Red Hat Integration Camel K 1 xstream Red Hat Integration Camel Quarkus 1 xstream
    affected: no fix available
  • Red Hat Integration Service Registry xstream Red Hat JBoss Data Grid 7 xstream Red Hat JBoss Enterprise Application Platform 6 xstream, keycloak-adapter-eap6 keycloak-adapter-eap6, keycloak-adapter-sso7_2-eap6 keycloak-adapter-sso7_2-eap6, keycloak-adapter-sso7_3-eap6 keycloak-adapter-sso7_3-eap6 Red Hat JBoss Fuse 6 xstream Red Hat JBoss Fuse Service Works 6 xstream
    affected: no fix planned “Out of support scope”
  • Red Hat OpenShift Container Platform 4 jenkins
    affected: no fix available
show 6 more
  • Red Hat Satellite 6 xstream
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Developer Tools and Services for OCP 4.13 jenkins 2.387.3.1684911776-3.el8
    fixed: vendor fix RHSA-2023:3299
  • Red Hat RHINT Camel-Q 2.13.2
    fixed: vendor fix RHSA-2023:0469
  • Red Hat RHINT Camel-Springboot 3.20.1
    fixed: vendor fix RHSA-2023:2100
  • Red Hat RHPAM 7.13.5 async
    fixed: vendor fix RHSA-2024:1353
  • Red Hat A-MQ Clients 2 xstream Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/elasticsearch6-rhel8 Red Hat OpenShift Developer Tools and Services for OCP 4.13 jenkins-2-plugins 4.13.1684911916-1.el8 Red Hat AMQ Broker 7 xstream Red Hat build of Apicurio Registry 2 xstream Red Hat build of Debezium 1 xstream
    +4 more products
    Red Hat JBoss Enterprise Application Platform 7 xstream Red Hat JBoss Enterprise Application Platform Expansion Pack xstream Red Hat OpenShift Application Runtimes xstream Red Hat streams for Apache Kafka xstream
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

2.22% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugs.chromium.org https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47367 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
maven com.thoughtworks.xstream:xstream
<1.4.20
1.4.20

Affected products

  • xstream xstream

Classification

Weakness
  • CWE-121 Stack-based Buffer Overflow
  • CWE-787 Out-of-bounds Write
  • CWE-502 Deserialization of Untrusted Data

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.