snappy-java's unchecked chunk length leads to DoS
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| xerial | snappy-java | affected |
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat AMQ Broker 7 | |||
| snappy-java | cpe:/a:redhat:amq_broker:7.12 | RHSA-2024:6893 | 2024-09-19T00:00:00Z |
| Red Hat AMQ Streams 2.5.0 | |||
| cpe:/a:redhat:amq_streams:2 | RHSA-2023:5165 | 2023-09-14T00:00:00Z | |
| Red Hat build of Quarkus 2.13.9.Final | |||
| org.xerial.snappy/snappy-java:1.1.10.5-redhat-00001 | cpe:/a:redhat:quarkus:2.13::el8 | RHSA-2023:7700 | 2023-12-07T00:00:00Z |
| RHINT Camel-K 1.10.5 | |||
| snappy-java | cpe:/a:redhat:camel_k:1.10.5 | RHSA-2024:0148 | 2024-01-10T00:00:00Z |
| RHINT Camel-Springboot 3.18.3.2 | |||
| snappy-java | cpe:/a:redhat:camel_spring_boot:3.18 | RHSA-2023:5147 | 2023-09-13T00:00:00Z |
| RHINT Camel-Springboot 3.20.2 | |||
| snappy-java | cpe:/a:redhat:camel_spring_boot:3.20 | RHSA-2023:5148 | 2023-09-13T00:00:00Z |
| RHINT Service Registry 2.5.4 GA | |||
| snappy-java | cpe:/a:redhat:service_registry:2.5 | RHSA-2023:7653 | 2023-12-05T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2023-1867 | 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. |
Github GHSA |
GHSA-qcwq-55hx-v3vh | snappy-java's unchecked chunk length leads to DoS |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 1.8% (1.762% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat amq Broker
|
|
| CPEs | cpe:/a:redhat:amq_broker:7.12 | |
| Vendors & Products |
Redhat amq Broker
|