Description
yawkat LZ4 Java provides LZ4 compression for Java. Prior to 1.11.2, LZ4DecompressorWithLength uses getDecompressedLength to trust the four-byte decompressed-length header before validating the compressed input, allowing a five-byte attacker-supplied input whose header declares a large output size to request up to approximately 2 GiB and exhaust the JVM heap. Convenience overloads backed by LZ4FastDecompressor or LZ4SafeDecompressor allocate the untrusted size, while overloads that write to a caller-provided destination buffer are not affected because the caller controls the destination size. This issue is fixed in version 1.11.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| yawkat | lz4-java | < 1.11.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lz4-java | 1.11.2+ds1-1 | — |
| Debian 13 | lz4-java | No fix yet | — |
| Debian 12 | lz4-java | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | lz4-java | No fix yet | — |
| Ubuntu 26.04 LTS | lz4-java | No fix yet | — |
| Ubuntu 24.04 LTS | lz4-java | No fix yet | — |
| Ubuntu 22.04 LTS | lz4-java | No fix yet | — |
| Ubuntu 20.04 LTS | lz4-java | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | akhq | 0.28.0-r14 | — |
| Wolfi rolling | apache-pulsar-4.2 | 4.2.5-r1 | — |
| Wolfi rolling | cassandra-4.1 | 4.1.12-r4 | — |
| Wolfi rolling | cassandra-5.0 | 5.0.9-r11 | — |
| Wolfi rolling | cassandra-reaper | 5.0.1-r7 | — |
| Wolfi rolling | debezium-3.5-connector-jdbc +5 | 3.5.2-r12 | — |
| Wolfi rolling | debezium-connector-db2-3.5 +1 | 3.5.2-r6 | — |
| Wolfi rolling | debezium-connector-ibmi-3.5 +1 | 3.5.2-r11 | — |
| Wolfi rolling | druid | 38.0.0-r2 | — |
| Wolfi rolling | flyway | 13.11.1-r2 | — |
| Wolfi rolling | kafka-4.1 | 4.1.2-r12 | — |
| Wolfi rolling | kafka-4.2 | 4.2.2-r3 | — |
| Wolfi rolling | logstash-9.3 +1 | 9.3.8-r3 | — |
| Wolfi rolling | logstash-9.4 +1 | 9.4.7-r6 | — |
| Wolfi rolling | sonarqube | 26.9.0.129388-r5 | — |
| Wolfi rolling | spark-4.0-scala-2.13 | 4.0.4-r9 | — |
| Wolfi rolling | strimzi-kafka-operator-kafka-init +6 | 1.2.0-r10 | — |
| Wolfi rolling | thingsboard-tb-node +1 | 4.4-r1 | — |
| Wolfi rolling | trino-plugin-hive +9 | 483-r12 | — |
| Wolfi rolling | wildfly-openjdk-17 +1 | 41.0.1-r6 | — |
| Wolfi rolling | zipkin +1 | 3.6.1-r35 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | at.yawk.lz4:lz4-java | < 1.11.2 | 1.11.2 | GHSA-6cx8-rjf8-pr8g |
| Maven | org.lz4:lz4-java | <= 1.8.1 | — | GHSA-6cx8-rjf8-pr8g |