CVE-2023-43642: Denial of Service vulnerability in snappy-java

Summary

25/09/2023
Yes i
High
7.5

CVE-2023-43642: snappy-java's missing upper bound check on chunk length can lead to Denial of Service (DoS) impact. Affects org.xerial.snappy:snappy-java versions < 1.1.10.4. Fixed in 1.1.10.4. How to fix ↓

Also tracked for

The same CVE-2023-43642 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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 Your last release was probably never penetration tested 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 library used for data compression. It provides functionality for compressing and decompressing data using the Snappy compression algorithm. The library is widely used in various applications for efficient data storage and transmission. However, a vulnerability has been discovered in snappy-java that can lead to a Denial of Service (DoS) attack.

Vulnerability Detail

The vulnerability in snappy-java exists in the SnappyInputStream component. When decompressing data with a too-large chunk size, the library fails to perform an upper bound check on the chunk length. This can result in an unrecoverable fatal error, leading to a DoS condition. Attackers can exploit this vulnerability by providing a specially crafted input that triggers the error. The impact of this vulnerability can be severe, especially if the affected application has configured 'ExitOnOutOfMemoryError' or 'CrashOnOutOfMemoryError' on the JVM.

How To Fix

Minimum fixed version

1.1.10.4

This is the first release that contains the fix.

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

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of snappy-java to mitigate the risk of a DoS attack.

Conclusion

The vulnerability in snappy-java can lead to a Denial of Service (DoS) attack on applications using the library. It is crucial to update to the latest version (1.1.10.4) to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for org.xerial.snappy:snappy-java →

Share this vulnerability

FAQ

snappy-java is a Java library used for data compression. It provides efficient compression and decompression algorithms for various applications.

The vulnerability can lead to a Denial of Service (DoS) attack on applications using snappy-java. It can cause the application to crash or become unresponsive, affecting its availability.

To fix this vulnerability, update snappy-java to the latest version (1.1.10.4) and rebuild your application. This version includes a fix for the DoS vulnerability.

No, there is no known workaround for this vulnerability. Updating to the fixed version is the recommended solution.

Yes, this vulnerability can be exploited remotely by providing specially crafted input to trigger the DoS condition.

Related vulnerabilities

Recent vulnerabilities recorded for org.xerial.snappy:snappy-java.

How To Fix

Minimum fixed version

1.1.10.4

This is the first release that contains the fix.

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