Skip to main content
Public proof of conceptFix available

CVE-2022-40152

A public proof of concept exists; no exploitation attested.

  • Published2022-09-16
  • Fixed in6.4.0 · 5.4.0
  • 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 Woodstox to parse XML data may be vulnerable to Denial of Service attacks (DOS) if DTD support is enabled. 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
Fasterxml woodstox
BranchAffectedFixed in
6.x≥ 6.0.0, < 6.4.06.4.0
5.4< 5.4.05.4.0
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 Woodstox
    Affected
    • < 6.4.0fixed in 6.4.0custom
    • < 5.4.0fixed in 5.4.0custom

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

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

  • apache-druidMinimOSall versions · fixed in 38.0.0-r0and 1 other package
  • cobblerSUSE:Manager Server Module 4.2all versions · fixed in 3.1.2-150300.5.19.1
  • com.fasterxml.woodstox:woodstox-coreTuxCare:Mavenfrom 5.0.3 · fixed in 5.0.3.tuxcare
  • com.fasterxml.woodstox:woodstox-coreTuxCare:Mavenfrom 5.3.0 · fixed in 5.3.0-tuxcare.1
  • com.fasterxml.woodstox:woodstox-coreTuxCare:Mavenfrom 6.0.1 · fixed in 6.0.1-tuxcare.1
  • com.fasterxml.woodstox:woodstox-coreRed Hat Lightwell:Mavenall versions · fixed in 5.0.3.rhlw-00001
  • com.fasterxml.woodstox:woodstox-coreRed Hat Lightwell:Mavenfrom 6.0.3 · fixed in 6.0.3.rhlw-00001
  • com.fasterxml.woodstox:woodstox-coreRed Hat Lightwell:Mavenfrom 6.2.2 · fixed in 6.2.2.rhlw-00004

135 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-40152 Red Hat Product Security102 products fixed · 18 known affected

    woodstox-core: woodstox to serialise XML data was vulnerable to Denial of Service attacks

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

  • RHSA-2025:4437 Red Hat Product Security54 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.13 security update

  • RHSA-2025:4226 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.10 on RHEL 7 security update

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

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

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

    Red Hat Security Advisory: Service Registry (container images) release and security update [2.4.3 GA]

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

    Red Hat Security Advisory: Red Hat Integration Camel for Spring Boot 3.18.3 Patch 2 release

7 more advisories

Full record on NVD

Fix

  1. Update Fasterxml woodstox to 6.4.0 · 5.4.0
  2. Vendor fix Red Hat Product Security RHSA-2025:4437 · 54 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
  3. Vendor fix Red Hat Product Security RHSA-2023:4983 · 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
  4. 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
  5. Vendor fix Red Hat Product Security RHSA-2023:0556 · 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
  6. Vendor fix Red Hat Product Security RHSA-2023:0554 · 2 productsBefore 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

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 score18.2 %read 2026-11-09
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryMODERATE2022-09-20

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-3f7h-mf4q-vrm4

Frequently asked questions

What is CVE-2022-40152?

Those using Woodstox to parse XML data may be vulnerable to Denial of Service attacks (DOS) if DTD support is enabled. 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-40152 actively exploited?

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

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

CVE-2022-40152 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 woodstox-core? 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