Skip to main content

lz4-java CVE-2026-106451

| EUVDEUVD-2026-93868 HIGH
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-10-06 security-advisories@github.com GHSA-mcr4-qmvw-px4g
7.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local account on shared host
  2. Delivery
    Plant/replace library at predictable temp path
  3. Exploit
    Win race before System.load()
  4. Execution
    Victim JVM loads attacker library
  5. Impact
    Execute native code as victim

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Exploitation requires: (1) an authenticated local user who shares a writable temporary directory with the victim - i.e. the victim JVM uses a shared/world-writable java.io.tmpdir (such as a default /tmp on a multi-user host) rather than a private per-user tmpdir; (2) the victim running lz4-java between 1.7.0 and 1.11.3 and actually extracting the bundled native library via net.jpountz.util.Native.load() (not configured to use a system library or Java-only pure-JVM implementations); and (3) the attacker winning the race between the predictable, non-exclusively-opened library path being written and System.load() mapping it. Limiting factors: local-only access (no remote vector), high attack complexity due to the timing race, dependence on permissive shared-directory permissions, and host protections - hardened systems may cause library loading to fail and fall back to the Java implementation rather than execute attacker code. Configurations using a system library, a private java.io.tmpdir, or Java-only implementations are not affected.

Impact

This is a local TOCTOU race condition (CWE-367) in lz4-java's native-library extraction, scored CVSS 4.0 7.3. The vendor vector (AV:L/AC:H/AT:P/PR:L/UI:N) is internally consistent with the description: exploitation requires an already-authenticated local user (PR:L), is high-complexity (AC:H), and carries an explicit attack requirement (AT:P) - namely winning a race and sharing a writable temp directory. Although the vulnerable-system impacts are all High (VC:H/VI:H/VA:H) because success yields native code execution as the victim, the real-world priority is moderate rather than urgent: the preconditions (shared/world-writable java.io.tmpdir, no private tmpdir, bundled native lib in use, and a timing win) substantially narrow the exploitable population. No EPSS score, no CISA KEV listing, and no public exploit were provided in the intelligence, so there is no public exploit identified at time of analysis and no evidence of active exploitation. Conflicting/soft signal: the input Tags label this 'Information Disclosure', but the description and the hardening in the fix commit describe arbitrary native code execution as the victim - the labeled impact understates the actual impact (code execution), so treat the tag with skepticism. Overall: a credible local privilege-escalation/code-execution primitive on multi-user hosts, but gated by non-default conditions and a race, making it a patch-in-normal-cycle item rather than an emergency for most single-tenant deployments.

Exploit ScenarioDerived

On a multi-user host where several accounts share a world-writable /tmp (java.io.tmpdir), a low-privileged local attacker repeatedly watches for a victim JVM using lz4-java to extract its bundled native library. Because the library path is derived predictably by stripping the '.lck' suffix and is then opened without exclusive creation, the attacker races to create or replace that file with a malicious shared object before System.load() runs, causing their native code to execute in the victim's process context. No public exploit code was identified at time of analysis, and success depends on winning the race and permissive directory permissions.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 06, 2026

Local authenticated attackers who share a writable Java temporary directory with a victim JVM can exploit a time-of-check/time-of-use race in lz4-java 1.7.0 through 1.11.3 to replace the native LZ4 library extracted by net.jpountz.util.Native.load(), potentially executing native code with the victim's privileges. The vulnerability is local-only and requires winning a race against native-library extraction, plus a shared java.io.tmpdir and native binding use; hardened configurations may instead fail loading and fall back to Java implementations. Version 1.11.4 fixes the issue; no public exploit identified at time of analysis.

RemediationAI

Upgrade lz4-java to 1.11.4 or later; the vendor advisory is at https://github.com/yawkat/lz4-java/security/advisories/GHSA-mcr4-qmvw-px4g and the fixed release at https://github.com/yawkat/lz4-java/releases/tag/v1.11.4. If patching is delayed, give each JVM a private java.io.tmpdir with 0700 permissions (for example, via -Djava.io.tmpdir=/secure/private-${USER} or systemd PrivateTmp=true) so other local users cannot write to the extraction directory; trade-off is that applications relying on shared temp files may break. Alternatively, configure lz4-java to use a trusted system library or the pure-Java implementation where supported, avoiding native extraction; trade-off is potential performance loss and possible behavioral differences. On multi-user hosts, remove world-writable access from the shared temporary directory or enable the sticky bit, but note that sticky-bit hardening may still not fully remove the TOCTOU window and may affect legitimate shared-temp workflows.

Affected VersionsENISA

lz4-java < 1.11.4

Affected Packages

maven at.yawk.lz4:lz4-java fix: 1.11.4
maven org.lz4:lz4-java no fix
euvd lz4_java fix: 1.11.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

lz4-java is a Java implementation of LZ4 compression that can extract and load a bundled native library via net.jpountz.util.Native.load(). In affected versions, the loader uses File.createTempFile to create an exclusive .lck lock file but then derives the native-library path by stripping .lck, and opens that predictable path with FileOutputStream without exclusive creation. This creates a TOCTOU race (CWE-367): a local user who can write to the same java.io.tmpdir can place or replace the library file before System.load() maps it, leading to native code execution as the victim. The fix in 1.11.4 creates the actual native library with File.createTempFile and removes the separate predictable .lck path, and adds cleanup for stale temp libraries. CPE data was not provided; the affected artifact is yawkat/lz4-java before 1.11.4.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.3 HIGH
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.0 HIGH

Local vector (shared tmpdir) gives AV:L; the timing race and required shared-dir permissions justify AC:H; a local account is needed so PR:L; success yields native code execution with full C/I/A in the victim process.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.0 MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 06, 2026 - 21:05 EUVD
CVE Published
Oct 06, 2026 - 20:17 cve.org
HIGH 7.3

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 483 maven packages depend on at.yawk.lz4:lz4-java (58 direct, 425 indirect)
  • 65 maven packages depend on org.lz4:lz4-java (17 direct, 48 indirect)

Ecosystem-wide dependent count for version 1.11.4 and other introduced versions.

Technical POC Analysis

No runnable PoC was supplied with this advisory.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A flaw in lz4-java, a compression library embedded in many Java applications, build pipelines, and data-processing services (versions 1.7.0 through 1.11.3), could allow an attacker who already has a foothold on the same host to run native code under the identity of the JVM that loaded it. The preconditions are narrow but realistic in shared environments: local access, a writable temporary directory shared with the victim process, and a successful timing race during native-library extraction. Leadership should care because multi-tenant application servers, CI/CD build agents, and shared container hosts commonly meet those conditions, and no public exploit has been identified at time of analysis, so the risk is concentrated in environments where local access is loosely controlled.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: isolate java.io.tmpdir so JVM processes do not share a writable temporary directory with untrusted local users (private per-user/per-process temp paths with restrictive permissions and no world-writable shared location); disable native LZ4 binding so the JVM falls back to Java implementations, noting that hardened configurations may fail native loading and fall back automatically; restrict interactive local access and shell availability on multi-tenant application servers, CI runners, and shared container hosts; and monitor or audit file creation and replacement inside temporary directories used by JVM processes. Track the upstream lz4-java 1.11.4 release referenced in the technical description as the fixing version.

Threat Intelligence Overview

EPSS Score
0.1%
Top 100% exploitable
Prevalence
High
lz4-java is a widely embedded Java compression dependency (Kafka, Elasticsearch, Spark)
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy