Skip to main content
Public proof of conceptFix available

CVE-2022-40151

A public proof of concept exists; no exploitation attested.

  • Published2022-09-16
  • Fixed in1.4.20
  • WeaknessCWE-121 · CWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-09-1610:15CVE publishedNVD

Versions per branch

NVD · OSV
Xstream
BranchAffectedFixed in
1.4< 1.4.201.4.20

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As Google, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • xstream
    Affected
    • ≤ 1.4.19no fix statedcustom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-09-16

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • com.thoughtworks.xstream:xstreamRoot:Mavenall versions · fixed in 1.4.20-aikido.2
  • hadoop-fips-3.3.6Chainguardall versions · no fixed version listedand 1 other package
  • io.root.com.thoughtworks.xstream:xstreamRoot:Mavenall versions · fixed in 1.4.20-root.io.1
  • io.root.com.thoughtworks.xstream:xstreamRoot:Mavenall versions · fixed in 1.4.20-root.io.2
  • jenkinsRed Hat:ocp_tools:4.13::el8all versions · fixed in 0:2.387.3.1684911776-3.el8
  • jenkins-2-pluginsRed Hat:ocp_tools:4.13::el8all versions · fixed in 0:4.13.1684911916-1.el8
  • libxstream-javaUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • libxstream-javaUbuntu:Pro:14.04:LTSall versions · no fixed version listed

31 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-40151 Red Hat Product Security5 products fixed · 21 known affected

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

    xstream.src as a component of Migration Toolkit for Runtimes · xstream as a component of Red Hat build of Quarkus · xstream as a component of Red Hat Data Grid 8 · +18 more

  • RHSA-2024:1353 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Process Automation Manager 7.13.5 security update

  • RHSA-2023:3299 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: jenkins and jenkins-2-plugins security update

  • RHSA-2023:2100 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Integration Camel for Spring Boot 3.20.1 security update

  • RHSA-2023:0469 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Integration Camel Extensions For Quarkus 2.13.2

Full record on NVD

Fix

  1. Update Xstream to 1.4.20
  2. Vendor fix Red Hat Product Security RHSA-2024:1353 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2023:3299 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2023:0469 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. No fix available, says the vendor Red Hat Product Security CVE-2022-40151 · 1 productFix deferred
  6. No fix available, says the vendor Red Hat Product Security CVE-2022-40151 · 4 productsAffected
  7. No fix planned, says the vendor Red Hat Product Security CVE-2022-40151 · 12 productsOut of support scope

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-21
  • CNACVSS 3.16.5known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • CNAweakness (CWE)CWE-121known since 2026-10-23
  • NVDweakness (CWE)CWE-787read 2026-10-23
  • FIRST EPSSEPSS score2.2 %2026-11-08
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2022-12-30

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-09-16
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-f8cc-g7j8-xxpm

Frequently asked questions

What is CVE-2022-40151?

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.

Is CVE-2022-40151 actively exploited?

A proof-of-concept exploit exists for CVE-2022-40151, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-40151?

CVE-2022-40151 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running xstream? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record