Uncontrolled Memory Allocation in lz4-java - #VU141232
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to memory allocation with excessive size value in LZ4DecompressorWithLength.decompress(byte[], int) and similar with-length convenience decompression overloads when processing attacker-supplied LZ4 data with a forged 4-byte length header. A remote attacker can send a specially crafted 5-byte input to cause a denial of service.
The issue is specific to convenience overloads that derive the destination length from the input header rather than using a caller-supplied buffer.