Stack Buffer Overflow in Jettison
Description
Jettison XML/JSON parser is vulnerable to denial of service via out-of-memory crashes when processing untrusted input with deeply nested or large payloads.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Jettison XML/JSON parser is vulnerable to denial of service via out-of-memory crashes when processing untrusted input with deeply nested or large payloads.
CVE-2022-40150 describes a denial of service (DoS) vulnerability affecting the Jettison Java library, which converts between XML and JSON using StAX. The root cause is insufficient protection against resource exhaustion: when Jettison parses untrusted XML or JSON data, an attacker can supply specially crafted content that triggers excessive memory allocation, leading to an out-of-memory crash [1][2]. This was discovered through OSS-Fuzz fuzzing, which reported multiple bugs including stack overflow and out-of-memory failures [2].
The attack surface is any application that uses Jettison to parse user-supplied JSON or XML content. No authentication is required if the attacker can provide input directly to the parser. The vulnerability is exploitable remotely by sending a malicious payload that exploits deeply nested structures or extremely large arrays [1]. Jettison notes that it includes default safety limits, such as a recursion depth limit of 500 and a JSONArray length limit of 1,000,000 elements, but these limits may still be insufficient to prevent memory exhaustion in certain scenarios, or may be adjustable by the application [3].
Successful exploitation causes the JVM to run out of memory, resulting in a crash and denial of service for the affected service [1]. As of the publication date, the issue was reported via OSS-Fuzz, and Jettison maintainers were asked to provide contact details to access detailed crash reports [2]. Users are advised to apply input validation and consider the default safety limits; however, no specific patch is mentioned in the available references, so relying on the built-in limits and restricting untrusted input is recommended.
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.codehaus.jettison:jettisonMaven | < 1.5.2 | 1.5.2 |
Affected products
7- osv-coords6 versionspkg:apk/chainguard/druidpkg:apk/chainguard/druid-compatpkg:apk/wolfi/druidpkg:apk/wolfi/druid-compatpkg:maven/org.codehaus.jettison/jettisonpkg:rpm/opensuse/jettison&distro=openSUSE%20Tumbleweed
< 35.0.1-r5+ 5 more
- (no CPE)range: < 35.0.1-r5
- (no CPE)range: < 34.0.0-r6
- (no CPE)range: < 35.0.1-r5
- (no CPE)range: < 34.0.0-r6
- (no CPE)range: < 1.5.2
- (no CPE)range: < 1.5.1-1.1
- Jettison/Jettisonv5Range: unspecified
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- github.com/advisories/GHSA-x27m-9w8j-5vcwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-40150ghsaADVISORY
- www.debian.org/security/2023/dsa-5312ghsavendor-advisoryWEB
- bugs.chromium.org/p/oss-fuzz/issues/detailghsaWEB
- github.com/jettison-json/jettison/issues/45ghsaWEB
- lists.debian.org/debian-lts-announce/2022/12/msg00045.htmlghsamailing-listWEB
News mentions
0No linked articles in our index yet.