CVE-2022-40152: Stack Buffer Overflow in Woodstox

Published Aug 11, 2022
·
Updated

A flaw was found in the FasterXML/woodstox package. This flaw allows an attacker to cause a denial of service (DoS) in its target via XML serialization. An attacker may benefit from the parser sending a malicious input that may cause a crash. This vulnerability is only relevant for users using the DTD parsing functionality.

Other sources

Those using FasterXML/woodstox 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.

This vulnerability is only relevant for users making use of the DTD parsing functionality.

GitHub

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.

Those using Xstream to serialize 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.

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47434 https://github.com/x-stream/xstream/issues/304

Red Hat

Affected Software

14 affected componentsFixes available
redhat/jenkins<0:2.387.3.1684911776-3.el8
0:2.387.3.1684911776-3.el8
redhat/eap7-woodstox-core<0:6.4.0-1.redhat_00001.1.el8ea
0:6.4.0-1.redhat_00001.1.el8ea
redhat/eap7-woodstox-core<0:6.4.0-1.redhat_00001.1.el9ea
0:6.4.0-1.redhat_00001.1.el9ea
redhat/eap7-woodstox-core<0:6.4.0-1.redhat_00001.1.el7ea
0:6.4.0-1.redhat_00001.1.el7ea
Xstream Project Xstream<=1.4.19
fasterxml Woodstox<5.4.0
fasterxml Woodstox>=6.0.0<6.4.0
redhat/woodstox-core<6.4.0
6.4.0
redhat/woodstox-core<5.4.0
5.4.0
XStream XStream<1.4.20
maven/com.fasterxml.woodstox:woodstox-core<5.4.0
5.4.0
maven/com.fasterxml.woodstox:woodstox-core>=6.0.0<6.4.0
6.4.0
IBM Watson Studio on Cloud Pak for Data<=4.0
IBM Watson Studio on Cloud Pak for Data<=5.0

Event History

Sep 16, 2022
CVE Published
12:00 AM
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
DescriptionSeverityWeakness
Sep 17, 2022
Advisory Published
via GitHub·12:00 AM
Oct 13, 2022
Data Sourced
via Red Hat·06:10 AM
DescriptionSeverityAffected Software
Aug 28, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-40152?

CVE-2022-40152 is a vulnerability that allows an attacker to cause a denial of service (DoS) in the FasterXML/woodstox package via XML serialization.

2

How does CVE-2022-40152 affect users?

Users using the woodstox-core package versions up to 6.4.0 or 5.4.0, jenkins version up to 2.387.3.1684911776-3.el8, or any version of eap7-woodstox-core or IBM Disconnected Log Collector up to v1.8.2 are affected by CVE-2022-40152.

3

How severe is CVE-2022-40152?

CVE-2022-40152 is considered high severity with a CVSS score of 7.

4

How can I fix CVE-2022-40152?

To fix CVE-2022-40152, update the affected software to version 6.4.0 for woodstox-core, 2.387.3.1684911776-3.el8 for jenkins, or a version higher than v1.8.2 for IBM Disconnected Log Collector.

5

Where can I find more information about CVE-2022-40152?

You can find more information about CVE-2022-40152 at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203