# GHSA-xqcq-j8w9-3pxv: Jettison parser crash by stackoverflow

> Attackers can cause a denial of service by sending crafted XML or JSON data to applications using the Jettison parser.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 1 Aug 2023

## What is GHSA-xqcq-j8w9-3pxv?

GHSA-xqcq-j8w9-3pxv is a denial of service vulnerability in com.tencyle.fixes:org.codehaus.jettison--jettison, published on 1 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Those using Jettison to parse untrusted XML or JSON 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.

### References

- https://nvd.nist.gov/vuln/detail/CVE-2022-40149
- https://github.com/jettison-json/jettison/issues/45
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46538
- https://github.com/jettison-json/jettison/pull/49/files
- https://github.com/jettison-json/jettison/releases/tag/jettison-1.5.1
- https://lists.debian.org/debian-lts-announce/2022/11/msg00011.html
- https://www.debian.org/security/2023/dsa-5312

## Which versions are affected by GHSA-xqcq-j8w9-3pxv?

2 open source packages ship an affected version, including com.tencyle.fixes:org.codehaus.jettison--jettison.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `com.tencyle.fixes:org.codehaus.jettison--jettison` | Maven | All versions | None |
| `com.tencyle.fixes:org.codehaus.jettison--jettison` | Maven | All versions | None |

## How do I fix GHSA-xqcq-j8w9-3pxv?

No fix has been published for GHSA-xqcq-j8w9-3pxv yet. Limit exposure of the affected software until one is available.

## Is GHSA-xqcq-j8w9-3pxv being exploited?

There is no known exploitation of GHSA-xqcq-j8w9-3pxv in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-xqcq-j8w9-3pxv and fix it if it is affected.

What it is: GHSA-xqcq-j8w9-3pxv is a denial of service vulnerability in com.tencyle.fixes:org.codehaus.jettison--jettison, published on 1 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-xqcq-j8w9-3pxv in the wild and no public exploit code.

Affected packages and fixed versions:
- com.tencyle.fixes:org.codehaus.jettison--jettison (Maven): affected all versions; no fix listed
- com.tencyle.fixes:org.codehaus.jettison--jettison (Maven): affected all versions; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-xqcq-j8w9-3pxv/ (Markdown: https://insights.sbomify.com/GHSA-xqcq-j8w9-3pxv/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-xqcq-j8w9-3pxv

---
From sbomify Insights: https://insights.sbomify.com/GHSA-xqcq-j8w9-3pxv/
Summaries are generated and may contain mistakes; the official description above is the record.
