Denial of Service Vulnerability in snappy-java Package

snappy-java Updated 02 Oct 2025

Summary

25/09/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-43642: snappy-java is a Java port of the snappy, a fast C++ compresser/decompresser developed by Google. Affects snappy-java versions < 1.1.10.5-1. Fixed in 1.1.10.5-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

snappy-java is a Java port of the Snappy compression library developed by Google, designed for fast compression and decompression of data. It is widely used in applications that require efficient data handling. However, it has been identified that all versions, including the latest release 1.1.10.3, are vulnerable to a Denial of Service (DoS) attack due to improper handling of chunk sizes during decompression.

Vulnerability Detail

The vulnerability arises from the SnappyInputStream's failure to enforce an upper bound on the chunk length during decompression. This oversight can lead to an unrecoverable fatal error, potentially crashing the application and resulting in a Denial of Service. Attackers can exploit this flaw by sending specially crafted compressed data, causing the application to become unresponsive.

How To Fix

Minimum fixed version

1.1.10.5-1

This is the first release that contains the fix.

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

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

Workaround

If upgrading is not feasible, users should only accept compressed data from trusted sources to mitigate the risk of exploitation. Implementing input validation to check the integrity and size of incoming compressed data can also help.

Conclusion

The snappy-java package is vulnerable to a Denial of Service attack due to improper handling of chunk sizes during decompression. Users are strongly advised to upgrade to the patched version to ensure the security and stability of their applications. For those unable to upgrade, accepting data only from trusted sources is crucial.

See every vulnerability recorded for snappy-java →

Share this vulnerability

FAQ

The vulnerability is a Denial of Service (DoS) issue caused by a lack of upper bound checks on chunk sizes during decompression.

All versions of snappy-java, including the latest release 1.1.10.3, are vulnerable to this issue.

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

If upgrading is not possible, only accept compressed data from trusted sources and implement input validation to mitigate risks.

Yes, a patch has been introduced in version 1.1.10.5-1 of the snappy-java package.

Related vulnerabilities

Recent vulnerabilities recorded for snappy-java.

How To Fix

Minimum fixed version

1.1.10.5-1

This is the first release that contains the fix.

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