CVE-2022-40152
Denial of Service due to parser crash
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.fasterxml.woodstox » woodstox-core | < 5.4.0>= 6.0.0, < 6.4.0 | 5.4.0, 6.4.0 |
Blast radius
42% of the dependent artifacts (8,749) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 17,727 |
| 2 hops | 265,957 |
| 3 hops | 363,953 |
| 4 hops | 271,657 |
| 5 hops | 118,815 |
| 6 hops | 41,320 |
Most used dependents
- org.codehaus.mojo » versions-maven-plugin5,371 usages
- org.apache.poi » poi-ooxml3,690 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- com.fasterxml.jackson.dataformat » jackson-dataformat-xml2,908 usages
- org.apache.spark » spark-core2,899 usages
- com.android.tools.build » gradle2,197 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.jetbrains.dokka » dokka-maven-plugin1,520 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.cxf » cxf-rt-frontend-jaxws1,379 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.apache.cxf » cxf-rt-transports-http1,281 usages
- org.apache.cxf » cxf-rt-frontend-jaxrs1,257 usages
- org.apache.flink » flink-streaming-java982 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-40152
- Webhttps://github.com/FasterXML/woodstox/issues/157
- Webhttps://github.com/FasterXML/woodstox/issues/160
- Webhttps://github.com/x-stream/xstream/issues/304
- Webhttps://github.com/FasterXML/woodstox/pull/159
- Webhttps://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47434
- Packagehttps://github.com/FasterXML/woodstox
