Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:40947
HistoryJun 20, 2023 - 3:44 a.m.

Integer Overflow

2023-06-2003:44:05
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
16
snappy-java
integer overflow
vulnerability
compress function
length checking
fatal access violation error
attacker
application crash

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

EPSS

0.001

Percentile

46.6%

snappy-java is vulnerable to Integer Overflow. The vulnerability exists because the compress function receives an array of characters and multiplies the value by two, and passes it to the rawCompress function of Snappy.java which does not properly check the length and causes an integer overflow, or the value becomes negative which leads to java.lang.NegativeArraySizeException exception if the size is too small to use for the compression, causing a fatal Access Violation error, allowing an attacker to crash the application.

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

EPSS

0.001

Percentile

46.6%