snappy-java's Integer Overflow vulnerability in compress leads to DoS
CVE-2023-34454

7.5HIGH

Key Information:

Vendor

Xerial

Vendor
CVE Published:
15 June 2023

What is CVE-2023-34454?

The Snappy library for Java is susceptible to an integer overflow issue due to unchecked multiplications in the compression function. When the length of the input character array is multiplied by two without proper validation, it can lead to an overflow, resulting in a negative length. This negative length subsequently causes allocation errors, specifically a java.lang.NegativeArraySizeException, or might allocate an insufficiently sized buffer, leading to fatal errors. This vulnerability affects multiple data types (char, double, float, int, long, short) utilized by the compress functions, except for byte arrays where such a situation is less likely to arise. Users are advised to upgrade to version 1.1.10.1, which includes fixes for this critical issue.

Affected Version(s)

snappy-java < 1.1.10.1

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.