Integer Overflow Vulnerability in Snappy-Java Package Leading to Potential Application Crashes

snappy-java Updated 02 Oct 2025

Summary

15/06/2023
N/A
No i
Medium
5.9

UBUNTU-CVE-2023-34453: snappy-java is a fast compressor/decompressor for Java. Affects snappy-java versions 1.0.4.1~dfsg-1. No fix is published. 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

Snappy-Java is a fast compressor and decompressor designed for Java applications, enabling efficient data processing and storage. It is widely used in various applications for its speed and performance. However, certain versions of Snappy-Java are vulnerable to an integer overflow issue that can lead to application crashes when handling specific input sizes.

Vulnerability Detail

The vulnerability arises from unchecked multiplications in the function 'shuffle(int[] input)' within the BitShuffle.java file. When the function multiplies the length of an input array by 4 without validating the length, it can lead to an integer overflow. This overflow may result in a negative array size or a size smaller than intended, causing exceptions such as 'java.lang.NegativeArraySizeException' or 'java.lang.ArrayIndexOutOfBoundsException'. The affected versions are those prior to 1.1.10.1, which contains a patch for this issue. The CVSS score for this vulnerability is 5.9, indicating a medium severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, validate the input array length before passing it to the shuffle function to prevent potential overflows. This can be implemented in your code as follows:

if (input.length > 0) {
    // Proceed with shuffle operation
} else {
    // Handle the error appropriately
}

Conclusion

The integer overflow vulnerability in the Snappy-Java package poses a risk of application crashes due to unchecked multiplications. It is crucial to update to the patched version 1.1.10.1 or later to mitigate this risk. Users are encouraged to validate input lengths as a temporary measure while transitioning to the updated package.

See every vulnerability recorded for snappy-java →

Share this vulnerability

FAQ

The integer overflow can lead to application crashes due to exceptions triggered by invalid array sizes.

You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

Versions prior to 1.1.10.1 are affected by this vulnerability.

Yes, version 1.1.10.1 and later contain a patch that addresses this vulnerability.

Implement input validation as a temporary workaround to prevent potential crashes until you can update.

Related vulnerabilities

Recent vulnerabilities recorded for snappy-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

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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