Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local account on shared host
-
DeliveryPlant/replace library at predictable temp path
-
ExploitWin race before System.load()
-
ExecutionVictim JVM loads attacker library
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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- 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.
Articles & Coverage 1
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
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
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-93868
GHSA-mcr4-qmvw-px4g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB