CVE-2026-106452: yawkat LZ4 Java: LZ4BlockInputStream allocates an unvalidated compressed length from the stream header

Published Oct 6, 2026
·
Updated

yawkat LZ4 Java provides LZ4 compression for Java. Prior to 1.11.2, net.jpountz.lz4.LZ4BlockInputStream refill() validates that the compressedLen field in a legacy LZ4Block header is nonnegative but allocates a compressed-input buffer of that attacker-controlled size before reading payload data, allowing a header-only stream to request a near-2 GiB allocation and exhaust the JVM heap. Canonical writers emit raw blocks when compression is not smaller than the original block, but vulnerable readers accept non-canonical oversized compressed blocks. This issue is fixed in version 1.11.2.

Affected Software

1 affected component
maven/at.yawk.lz4/lz4-java<1.11.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade yawkat LZ4 Java to a version that resolves this vulnerability.

    Fixed in 1.11.2

Event History

Oct 6, 2026
CVE Published
via MITRE·07:52 PM
Data Sourced
via MITRE·07:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using yawkat LZ4 Java before version 1.11.2 are exposed when they pass attacker-controlled or otherwise untrusted LZ4 legacy block streams to net.jpountz.lz4.LZ4BlockInputStream.

2

What does an attacker need to do to trigger the problem?

An attacker only needs to provide a crafted stream header with a very large nonnegative compressedLen value. The stream can be header-only; no payload data is required before the vulnerable reader attempts the allocation.

3

Is this limited to streams produced by standard LZ4 writers?

No. Canonical writers emit raw blocks when compression would not reduce the block size, but vulnerable readers accept non-canonical oversized compressed blocks. Exploitation relies on such an oversized crafted block rather than normal canonical output.

4

What is the impact of successful exploitation?

The vulnerable reader can attempt to allocate a compressed-input buffer approaching 2 GiB, which can exhaust the JVM heap and cause a denial of service. The provided severity vector indicates no confidentiality or integrity impact.

5

What should be done to remediate the issue?

Upgrade yawkat LZ4 Java to version 1.11.2, which fixes the issue. Until upgrading, avoid processing untrusted LZ4 legacy block streams with the affected reader.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203