Vulnerabilities in pkg:maven/net.jpountz.lz4/lz4

PACKAGE
Advisory Identifier: GHSA-vqf4-7m7x-wgfc
Advisory Summary

CVE-2025-12183 is a HIGH denial of service vulnerability (CWE-125: Out-of-bounds Read) affecting Lz4 java libraries in the Maven ecosystem. The issue involves lz4 java compression has out-of-bounds memory operations which can cause dos. Remediation is available by upgrading affected packages to version 1.8.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/net.jpountz.lz4/lz4

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/net.jpountz.lz4/lz4. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vqf4-7m7x-wgfc CVE-2025-12183 HIGH LZ4 Java Compression has Out-of-bounds memory operations which can cause DoS
GHSA-cmp6-m4wj-q63q CVE-2025-66566 HIGH yawkat LZ4 Java has a possible information leak in Java safe decompressor

CVE-2025-12183 at a Glance

CVE Identifier CVE-2025-12183
GHSA Identifier GHSA-vqf4-7m7x-wgfc
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Lz4 java
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-12183

To remediate this vulnerability, upgrade all affected Lz4 java dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

at.yawk.lz4:lz4-java fixed: 1.8.1
<dependency>
    <groupId>at.yawk.lz4</groupId>
    <artifactId>lz4-java</artifactId>
    <version>1.8.1</version>
</dependency>
org.lz4:lz4-java fixed: 1.8.1
<dependency>
    <groupId>org.lz4</groupId>
    <artifactId>lz4-java</artifactId>
    <version>1.8.1</version>
</dependency>
org.lz4:lz4-pure-java fixed: Latest secure release
<dependency>
    <groupId>org.lz4</groupId>
    <artifactId>lz4-pure-java</artifactId>
    <version>Latest secure release</version>
</dependency>
net.jpountz.lz4:lz4 fixed: Latest secure release
<dependency>
    <groupId>net.jpountz.lz4</groupId>
    <artifactId>lz4</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=at.yawk.lz4

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-12183, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=at.yawk.lz4

Analyze the terminal output to locate any version of Lz4 java in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=at.yawk.lz4 command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Lz4 java, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Out-of-bounds memory operations in org.lz4:lz4-java 1.8.0 and earlier allow remote attackers to cause denial of service and read adjacent memory via untrusted compressed input. This is fixed in a forked release: at.yawk.lz4:lz4-java version 1.8.1. The original project has been archived: https://github.com/lz4/lz4-java, and Sonatype has added a redirect from org.lz4:lz4-java:1.8.1 to the new group ID.

CVE-2025-12183 Affected Lz4 java Versions

4 component(s)
Fixed Versions:
1.8.1
Product / Package Ecosystem Affected Versions Fixed Version
at.yawk.lz4:lz4-java
Maven
< 1.8.1
1.8.1
org.lz4:lz4-java
Maven
< 1.8.1
1.8.1
org.lz4:lz4-pure-java
Maven
≤ 1.8.0
net.jpountz.lz4:lz4
Maven
≤ 1.3.0

References

Frequently Asked Questions

What is CVE-2025-12183?
CVE-2025-12183 is a security vulnerability in Lz4 java involving LZ4 Java Compression has Out-of-bounds memory operations which can cause DoS under CWE-125: Out-of-bounds Read.
Which Lz4 java versions are affected?
Affected versions include releases prior to 1.8.1 across affected packages: at.yawk.lz4:lz4-java, org.lz4:lz4-java, org.lz4:lz4-pure-java, net.jpountz.lz4:lz4.
What version fixes CVE-2025-12183?
Upgrading to 1.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lz4-java affected?
Yes, at.yawk.lz4:lz4-java is affected in releases prior to 1.8.1. Upgrade your dependency to 1.8.1 or later.
Is lz4-pure-java affected?
Yes, org.lz4:lz4-pure-java is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-12183?
CVE-2025-12183 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check Maven dependencies for CVE-2025-12183?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=at.yawk.lz4'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vqf4-7m7x-wgfc",
  "modified" : "2025-12-31T22:00:12Z",
  "published" : "2025-11-28T18:30:23Z",
  "aliases" : [ "CVE-2025-12183" ],
  "summary" : "LZ4 Java Compression has Out-of-bounds memory operations which can cause DoS",
  "details" : "Out-of-bounds memory operations in org.lz4:lz4-java 1.8.0 and earlier allow remote attackers to cause denial of service and read adjacent memory via untrusted compressed input.\n\nThis is fixed in a forked release: at.yawk.lz4:lz4-java version 1.8.1. The original project has been archived: https://github.com/lz4/lz4-java, and Sonatype has added a redirect from org.lz4:lz4-java:1.8.1 to the new group ID.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "at.yawk.lz4:lz4-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.lz4:lz4-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.lz4:lz4-pure-java"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.8.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.jpountz.lz4:lz4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-12183"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/yawkat/lz4-java"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/yawkat/lz4-java/releases/tag/v1.8.1"
  }, {
    "type" : "WEB",
    "url" : "https://sites.google.com/sonatype.com/vulnerabilities/cve-2025-12183"
  }, {
    "type" : "WEB",
    "url" : "https://www.sonatype.com/security-advisories/cve-2025-12183"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/12/01/5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-03T14:00:28Z",
    "nvd_published_at" : "2025-11-28T16:15:51Z"
  }
}