Skip to content
Heist/ feed
Back to feed
Medium

lz4-java — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-106452

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.

Products
lz4-java
Affected versions
1.5.1-2, 1.5.1-3build1, 1.8.0-3, 1.8.0-4, 1.8.0-4build1, 1.8.0-4build2
Fixed versions
Not specified
CVEs
CVE-2026-106452
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:00 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-106452

core-osv · Original source

Published 6 Oct 2026, 20:17 UTC

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.

osv:UBUNTU-CVE-2026-106452

lz4-java

Fixed versions: Not specified

lz4-java

Fixed versions: Not specified

lz4-java

Fixed versions: Not specified

lz4-java

Fixed versions: Not specified

lz4-java

Fixed versions: Not specified

Complete source record
{
  "id": "99952b778fec2cd806c3a1964b8393456c4a79464f3cca65c06a333361be7cf4",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-106452",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-106452",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-106452",
    "products": [
      {
        "name": {
          "value": "lz4-java",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.1-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lz4-java",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.1-3build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lz4-java",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.0-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.8.0-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.8.0-4build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lz4-java",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.0-4build2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lz4-java",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.0-4build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.8.0-4build2",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-106452",
      "aliases": [
        "UBUNTU-CVE-2026-106452"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4-java",
            "purl": "pkg:deb/ubuntu/lz4-java?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.5.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106452.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblz4-java",
                "binary_version": "1.5.1-2"
              },
              {
                "binary_name": "liblz4-jni",
                "binary_version": "1.5.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4-java",
            "purl": "pkg:deb/ubuntu/lz4-java?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.5.1-3build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106452.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblz4-java",
                "binary_version": "1.5.1-3build1"
              },
              {
                "binary_name": "liblz4-jni",
                "binary_version": "1.5.1-3build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4-java",
            "purl": "pkg:deb/ubuntu/lz4-java?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.8.0-3",
            "1.8.0-4",
            "1.8.0-4build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106452.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblz4-java",
                "binary_version": "1.8.0-4build1"
              },
              {
                "binary_name": "liblz4-jni",
                "binary_version": "1.8.0-4build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4-java",
            "purl": "pkg:deb/ubuntu/lz4-java?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.8.0-4build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106452.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblz4-java",
                "binary_version": "1.8.0-4build2"
              },
              {
                "binary_name": "liblz4-jni",
                "binary_version": "1.8.0-4build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4-java",
            "purl": "pkg:deb/ubuntu/lz4-java?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.8.0-4build1",
            "1.8.0-4build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106452.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblz4-java",
                "binary_version": "1.8.0-4build2"
              },
              {
                "binary_name": "liblz4-jni",
                "binary_version": "1.8.0-4build2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:01.535974885Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-106452"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-106452",
        "https://www.cve.org/CVERecord?id=CVE-2026-106452",
        "https://github.com/yawkat/lz4-java/security/advisories/GHSA-4v53-57pg-c464"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-106452",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357880,
  "published_at": "2026-10-06T20:17:00+00:00"
}