CVE-2025-67721
JSON

6.3medium

Aircompressor's Snappy and LZ4 Java-based decompressor implementation can leak information from reused output buffer

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.56% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vx9q-rhv9-3jvg

Description

Aircompressor is a library with ports of the Snappy, LZO, LZ4, and Zstandard compression algorithms to Java. In versions 3.3 and below, incorrect handling of malformed data in Java-based decompressor implementations for Snappy and LZ4 allow remote attackers to read previous buffer contents via crafted compressed input. With certain crafted compressed inputs, elements from the output buffer can end up in the uncompressed output, potentially leaking sensitive data. This is relevant for applications that reuse the same output buffer to uncompress multiple inputs. This can be the case of a web server that allocates a fix-sized buffer for performance purposes. There is similar vulnerability in GHSA-cmp6-m4wj-q63q. This issue is fixed in version 3.4.

Affected

Product or packageVersionsReported by
airlift aircompressor< 3.4, before 2.0.3, from 3.0 before 3.4CVE List, NVD
io.airlift:aircompressor-v3 (Maven)before 3.4GitHub Advisory Database
io.airlift:aircompressor (Maven)before 2.0.3GitHub Advisory Database

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-125CWE-201

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Aircompressor is a library with ports of the Snappy, LZO, LZ4, and Zstandard compression algorithms to Java. In versions 3.3 and below, incorrect handling of malformed data in Java-based decompressor implementations for Snappy and LZ4 allow remote attackers to read previous buffer contents via crafted compressed input. With certain crafted compressed inputs, elements from the output buffer can end up in the uncompressed output, potentially leaking sensitive data. This is relevant for applications that reuse the same output buffer to uncompress multiple inputs. This can be the case of a web server that allocates a fix-sized buffer for performance purposes. There is similar vulnerability in GHSA-cmp6-m4wj-q63q. This issue is fixed in version 3.4.

GitHub Advisory Database
Summary

Incorrect handling of malformed data in Java-based decompressor implementations for Snappy and LZ4 allows remote attackers to read previous buffer contents via crafted compressed input. In applications where the output buffer is reused without being cleared, this may lead to disclosure of sensitive data.

Details

With certain crafted compressed inputs, elements from the output buffer can end up in the uncompressed output. This is relevant for applications that reuse the same output buffer to uncompress multiple inputs. This can be the case of a web server that allocates a fix-sized buffer for performance purposes. This is similar to GHSA-cmp6-m4wj-q63q.

Impact

Applications using aircompressor as described above may leak sensitive information to external unauthorized attackers.

Mitigation

The vulnerability is fixed in release 3.4 and 2.0.3. However, it can be mitigated by either:

  • Avoiding reuse of the decompression buffer across calls
  • Clearing the decompression buffer before a call to decompress data
NVD (es)

Aircompressor es una biblioteca con puertos de los algoritmos de compresión Snappy, LZO, LZ4 y Zstandard a Java. En las versiones 3.3 e inferiores, el manejo incorrecto de datos malformados en las implementaciones de descompresores basadas en Java para Snappy y LZ4 permite a atacantes remotos leer el contenido de búferes anteriores a través de una entrada comprimida manipulada. Con ciertas entradas comprimidas manipuladas, elementos del búfer de salida pueden terminar en la salida descomprimida, lo que podría filtrar datos sensibles. Esto es relevante para aplicaciones que reutilizan el mismo búfer de salida para descomprimir múltiples entradas. Este puede ser el caso de un servidor web que asigna un búfer de tamaño fijo con fines de rendimiento. Existe una vulnerabilidad similar en GHSA-cmp6-m4wj-q63q. Este problema está solucionado en la versión 3.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-67721 changed 2025-12-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-vx9q-rhv9-3jvg changed 2026-09-10CC-BY-4.0
NVDCVE-2025-67721 changed 2026-10-07Public domain