Wiz Agents & Workflows are here

CVE-2022-40152
Java vulnerability analysis and mitigation

Overview

A vulnerability was identified in Woodstox XML parser (CVE-2022-40152) that could lead to Denial of Service (DoS) attacks when DTD support is enabled. The vulnerability was discovered and disclosed in September 2022, affecting systems using Woodstox for XML data parsing. When processing user-supplied input, the parser may crash due to a stack overflow condition (NVD, CVE Mitre).

Technical details

The vulnerability occurs specifically when DTD (Document Type Definition) support is enabled in the Woodstox XML parser. The issue manifests as a stack overflow condition when processing certain maliciously crafted XML inputs. The vulnerability has been assigned a CVSS 3.1 base score of 7.5 (High), with the following vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating network vector attack with low complexity and no required privileges or user interaction (Ubuntu).

Impact

The primary impact of this vulnerability is the potential for Denial of Service attacks. When exploited, the vulnerability can cause the XML parser to crash, disrupting the availability of services that rely on XML parsing functionality. The CVSS scoring indicates high impact on availability while maintaining no impact on confidentiality or integrity (Ubuntu).

Mitigation and workarounds

The primary mitigation strategy involves updating to a patched version of Woodstox that includes the recursion depth check in the readContentSpec of FullDTDReader. If immediate updating is not possible, organizations should consider disabling DTD support when processing untrusted XML input (Red Hat).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-33871HIGH8.7
  • JavaJava
  • strimzi-kafka-operator-0.50
NoYesMar 27, 2026
CVE-2026-34214HIGH7.7
  • JavaJava
  • io.trino:trino-iceberg
NoYesMar 29, 2026
GHSA-443w-3rq3-5m5hHIGH7.7
  • JavaJava
  • software.amazon.awssdk:cloudfront
NoYesMar 27, 2026
CVE-2026-33870HIGH7.5
  • JavaJava
  • knative-kafka-broker-1.18
NoYesMar 27, 2026
CVE-2026-22744HIGH7.5
  • JavaJava
  • org.springframework.ai:spring-ai-redis-store
NoYesMar 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management