CVE-2023-34455
Summary
| CVE | CVE-2023-34455 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-06-15 18:15:00 UTC |
| Updated | 2024-02-01 14:17:00 UTC |
| Description | snappy-java is a fast compressor/decompressor for Java. Due to use of an unchecked chunk length, an unrecoverable fatal error can occur in versions prior to 1.1.10.1.
The code in the function hasNextChunk in the fileSnappyInputStream.java checks if a given stream has more chunks to read. It does that by attempting to read 4 bytes. If it wasn’t possible to read the 4 bytes, the function returns false. Otherwise, if 4 bytes were available, the code treats them as the length of the next chunk.
In the case that the `compressed` variable is null, a byte array is allocated with the size given by the input data. Since the code doesn’t test the legality of the `chunkSize` variable, it is possible to pass a negative number (such as 0xFFFFFFFF which is -1), which will cause the code to raise a `java.lang.NegativeArraySizeException` exception. A worse case would happen when passing a huge positive value (such as 0x7FFFFFFF), which would raise the fatal `java.lang.OutOfMemoryError` error.
Version 1.1.10.1 contains a patch for this issue. |
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|
| Application |
Xerial |
Snappy-java |
All |
All |
All |
All |
References
| Reference | Source | Link | Tags |
|---|
| snappy-java/src/main/java/org/xerial/snappy/SnappyInputStream.java at 05c39b2ca9b5b7b39611529cc302d3d796329611 · xerial/snappy-java · GitHub |
MISC |
github.com |
|
| snappy-java/src/main/java/org/xerial/snappy/SnappyInputStream.java at master · xerial/snappy-java · GitHub |
MISC |
github.com |
|
| Unchecked chunk length leads to DoS · Advisory · xerial/snappy-java · GitHub |
MISC |
github.com |
|
| Merge pull request from GHSA-qcwq-55hx-v3vh · xerial/snappy-java@3bf6785 · GitHub |
MISC |
github.com |
|
| CVE-2023-34455 Apache Kafka Vulnerability in NetApp Products | NetApp Product Security |
MISC |
security.netapp.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 731295 Atlassian Jira Software Data Center and Server Denial of Service (DoS) Vulnerability (JSWSERVER-25794)