SCA: security update for org.xerial.snappy:snappy-java (GHSA-qcwq-55hx-v3vh)

high Tenable Cloud Security Plugin ID 418073

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2023-34455)

See Also

https://github.com/advisories/GHSA-qcwq-55hx-v3vh

Plugin Details

Severity: High

ID: 418073

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.39

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2023-34455

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/15/2023

Vulnerability Publication Date: 6/15/2023

Reference Information

CVE: CVE-2023-34455

cwe: CWE-770