Denial of Service Vulnerability in libjson-java Package

libjson-java Updated 02 Oct 2025

Summary

12/10/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-5072: Denial of Service in JSON-Java versions up to and including 20230618. Affects libjson-java versions < 3.1.0+dfsg-1. Fixed in 3.1.0+dfsg-1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libjson-java is a Java library that provides functionality for parsing and generating JSON data. It is widely used in applications that require data interchange in JSON format. The library is known for its ease of use and integration into Java projects, making it a popular choice among developers. However, it has been identified to have a vulnerability that can lead to excessive memory consumption under certain conditions.

Vulnerability Detail

The vulnerability, identified as DEBIAN-CVE-2023-5072, is a Denial of Service (DoS) issue present in JSON-Java versions up to and including 20230618. The root cause of this vulnerability lies in a bug within the parser, which allows an input string of modest size to consume an indefinite amount of memory. This can lead to application crashes or unresponsive behavior, severely impacting the availability of services that rely on this library.

How To Fix

Minimum fixed version

3.1.0+dfsg-1

This is the first release that contains the fix.

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

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

Workaround

As a temporary workaround, it is advisable to validate and sanitize input strings before processing them with the libjson-java parser. This can help mitigate the risk of triggering the vulnerability until an update can be applied.

Conclusion

The libjson-java package has a critical Denial of Service vulnerability that can severely impact applications relying on it. It is essential to update to the latest patched version to ensure the security and stability of your applications. Implementing input validation can serve as a temporary measure until the update is applied.

See every vulnerability recorded for libjson-java →

Share this vulnerability

FAQ

The vulnerability is a Denial of Service (DoS) issue that can lead to excessive memory consumption when processing certain input strings.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Versions of libjson-java up to and including 20230618 are affected by this vulnerability.

If an immediate update is not possible, consider implementing input validation and sanitization as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libjson-java.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.1.0+dfsg-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libjson-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