CVE-2025-10995
JSON

4.8medium

Open Babel zipstreamimpl.h underflow memory corruption

Severity
4.8medium CVSS:4.0 by VulDB
Exploit likelihood
0.28% (higher than 14% of CVEs)
Published
Last changed
Assigned by
VulDB
Also known as
GHSA-8j3x-m868-cpw8PYSEC-2026-2776

Description

A security vulnerability has been detected in Open Babel up to 3.1.1. This vulnerability affects the function zlib_stream::basic_unzip_streambuf::underflow in the library /src/zipstreamimpl.h. Such manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed publicly and may be used.

Affected

Product or packageVersionsReported by
Open Babel3.1.0, 3.1.1CVE List
openbabel (PyPI)before 3.2.0GitHub Advisory Database, PyPA Advisory Database
openbabel open_babelup to 3.1.1NVD

All scores

VulDB4.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
VulDB5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
VulDB5.3medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
VulDB4.3medium CVSS:2.0AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR
GitHub7.8low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHublow CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Classification

CWE-119CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

A security vulnerability has been detected in Open Babel up to 3.1.1. This vulnerability affects the function zlib_stream::basic_unzip_streambuf::underflow in the library /src/zipstreamimpl.h. Such manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed publicly and may be used.

CVE List (de)

In Open Babel up to 3.1.1 ist eine Schwachstelle entdeckt worden. Betroffen ist die Funktion zlib_stream::basic_unzip_streambuf::underflow in der Bibliothek /src/zipstreamimpl.h. Durch die Manipulation mit unbekannten Daten kann eine memory corruption-Schwachstelle ausgenutzt werden. Der Angriff muss auf lokaler Ebene erfolgen. Der Exploit ist öffentlich verfügbar und könnte genutzt werden.

GitHub Advisory Database
Summary

A memory-safety vulnerability in Open Babel's bundled zipstream decompression code caused an out-of-bounds write via overlapping memcpy when reading a crafted gzip-compressed chemistry file.

Details

The flaw was in basic_unzip_streambuf::underflow. The decompression buffer refill path invoked memcpy with overlapping source and destination regions, which is undefined behavior and produced out-of-bounds writes in practice. Any file format read through the gzip-wrapped reader was a potential trigger.

Impact

Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious gzip-compressed chemistry file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).

Affected versions

All releases up to and including 3.1.1.

Patched version

3.2.0 (released 2026-05-26).

Patch

Fix commit: https://github.com/openbabel/openbabel/commit/d4621d41 Originally reported as #2832; fixes consolidated in #2913.

A minimized reproducer for this CVE is checked in under test/files/fuzz_regress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.

Credit

Reported via OSS-Fuzz.

NVD (es)

Una vulnerabilidad de seguridad ha sido detectada en Open Babel hasta 3.1.1. Esta vulnerabilidad afecta a la función zlib_stream::basic_unzip_streambuf::underflow en la biblioteca /src/zipstreamimpl.h. Dicha manipulación conduce a corrupción de memoria. Se requiere acceso local para llevar a cabo este ataque. El exploit ha sido divulgado públicamente y puede ser utilizado.

References

https://vuldb.com/?id.325923technical-description, third-party-advisory, vdb-entry, web
https://vuldb.com/?ctiid.325923permissions-required, signature, vdb-entry, web
https://vuldb.com/?submit.654059third-party-advisory, vdb-entry, web
https://github.com/openbabel/openbabel/issues/2832exploit, issue-tracking, web
https://github.com/user-attachments/files/22318572/poc.zipexploit, web
https://github.com/openbabel/openbabel/security/advisories/GHSA-8j3x-m868-cpw8web
https://nvd.nist.gov/vuln/detail/CVE-2025-10995advisory
https://github.com/openbabel/openbabel/issues/2913web
https://github.com/openbabel/openbabel/commit/d4621d417c167b50cc8ce7aa3a02557e5b2b81c5web
https://github.com/openbabel/openbabelpackage
https://pypi.org/project/openbabelpackage
https://github.com/advisories/GHSA-8j3x-m868-cpw8advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-10995 changed 2025-09-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-8j3x-m868-cpw8 changed 2026-07-13CC-BY-4.0
NVDCVE-2025-10995 changed 2026-10-19Public domain
PyPA Advisory DatabasePYSEC-2026-2776 changed 2026-07-13CC-BY-4.0