CVE-2024-36114: Decompressors can crash the JVM and leak memory content in Aircompressor
8.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.26301%
CWE
Published
6/2/2024
Updated
6/2/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| io.airlift:aircompressor | maven | < 0.27 | 0.27 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing bounds checks when handling compressed data lengths. All patched files added explicit checks for negative lengths/offsets caused by integer overflow (e.g., literalLength < 0). The functions directly process untrusted input using sun.misc.Unsafe for memory operations, and the absence of these checks allowed: 1) OOB reads/writes via negative lengths wrapping to large positive values, 2) Access to memory outside allocated buffers. The commit diffs show these functions were modified to add MalformedInputException throws precisely where length validation was missing, confirming their vulnerable status.