Time-of-check Time-of-use (TOCTOU) Affecting lz4-java package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.08% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-LZ4JAVA-20557242
  • published7 Oct 2026
  • disclosed6 Oct 2026

Introduced: 6 Oct 2026

NewCVE-2026-106451  (opens in a new tab)
CWE-367  (opens in a new tab)
CWE-377  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest lz4-java.

NVD Description

Note: Versions mentioned in the description apply only to the upstream lz4-java package and not the lz4-java package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

yawkat LZ4 Java provides LZ4 compression for Java. From 1.7.0 until 1.11.4, net.jpountz.util.Native.load() uses File.createTempFile to create an exclusive temporary .lck file but derives the native-library path by removing the suffix, then FileOutputStream opens that predictable path without exclusive creation, allowing another local user with access to the same shared temporary directory to create or replace the library file before System.load() uses it. Successful exploitation depends on shared-directory permissions, host protections, and winning the race, and can execute native code as the victim; hardened systems may instead cause library loading to fail and fall back to Java implementations. Configurations using a system library, a private java.io.tmpdir, or Java-only implementations are not affected. This issue is fixed in version 1.11.4.

CVSS Base Scores

version 3.1