Denial of Service Vulnerability in Jettison (libjettison-java) Due to Stack Overflow

libjettison-java Updated 02 Oct 2025

Summary

13/12/2022
N/A
Yes i
High
7.5

CVE-2022-45685: A stack overflow in Jettison before v1.5.2 allows attackers to cause a Denial of Service (DoS) via crafted JSON data. Affects libjettison-java across 2 version ranges.

< 1.5.3-1~deb11u1 < 6dc73a07ac47c7e3b4c7d041761fbc11aee2eb50

Fixed in 1.5.3-1~deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Jettison is a Java library used for converting between JSON and XML formats. It is widely utilized in applications that require data interchange between these two formats. The library is known for its lightweight design and ease of use. However, a vulnerability has been identified in versions prior to 1.5.2, which allows attackers to exploit crafted JSON data, leading to a stack overflow and potential Denial of Service (DoS) conditions.

Vulnerability Detail

The vulnerability, identified as CVE-2022-45685, arises from a stack overflow in Jettison before version 1.5.2. Attackers can exploit this vulnerability by sending specially crafted JSON data to the application using the library. This can lead to a Denial of Service (DoS), where the application becomes unresponsive or crashes. The vulnerability has a CVSS score of 7.5, indicating a high severity level, and it affects multiple Debian ecosystems, including versions 11, 12, and 13.

How To Fix

Minimum fixed version

1.5.3-1~deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libjettison-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not feasible, consider implementing input validation to sanitize JSON data before processing it. This can help mitigate the risk of stack overflow by rejecting malformed or overly complex JSON structures.

Conclusion

The CVE-2022-45685 vulnerability in the Jettison library poses a significant risk of Denial of Service due to stack overflow. Users are strongly advised to upgrade to version 1.5.3 or later to protect their applications. Implementing input validation can serve as a temporary workaround while awaiting an upgrade.

See every vulnerability recorded for libjettison-java →

Share this vulnerability

FAQ

CVE-2022-45685 is a vulnerability in the Jettison library that allows attackers to cause a Denial of Service through crafted JSON data.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

If an immediate upgrade is not possible, implement input validation to sanitize JSON data and mitigate the risk of stack overflow.

More information about Jettison can be found on its GitHub repository at https://github.com/jettison-json/jettison.

Related vulnerabilities

Recent vulnerabilities recorded for libjettison-java.

How To Fix

Minimum fixed version

1.5.3-1~deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libjettison-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback