CVE-2023-43642: Denial of Service vulnerability in snappy-java
Summary
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
- snappy-java · Debian:11
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.
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.xerial.snappy:snappy-java.