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 package | Versions | Reported by |
|---|---|---|
| Open Babel | 3.1.0, 3.1.1 | CVE List |
| openbabel (PyPI) | before 3.2.0 | GitHub Advisory Database, PyPA Advisory Database |
| openbabel open_babel | up to 3.1.1 | NVD |
All scores
| VulDB | 4.8medium CVSS:4.0 | CVSS: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 |
| VulDB | 5.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R |
| VulDB | 5.3medium CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R |
| VulDB | 4.3medium CVSS:2.0 | AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR |
| GitHub | 7.8low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | low CVSS:4.0 | CVSS: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 |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS: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
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.325923 | technical-description, third-party-advisory, vdb-entry, web | |
| https://vuldb.com/?ctiid.325923 | permissions-required, signature, vdb-entry, web | |
| https://vuldb.com/?submit.654059 | third-party-advisory, vdb-entry, web | |
| https://github.com/openbabel/openbabel/issues/2832 | exploit, issue-tracking, web | |
| https://github.com/user-attachments/files/22318572/poc.zip | exploit, web | |
| https://github.com/openbabel/openbabel/security/advisories/GHSA-8j3x-m868-cpw8 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-10995 | advisory | |
| https://github.com/openbabel/openbabel/issues/2913 | web | |
| https://github.com/openbabel/openbabel/commit/d4621d417c167b50cc8ce7aa3a02557e5b2b81c5 | web | |
| https://github.com/openbabel/openbabel | package | |
| https://pypi.org/project/openbabel | package | |
| https://github.com/advisories/GHSA-8j3x-m868-cpw8 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-10995 changed 2025-09-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8j3x-m868-cpw8 changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2025-10995 changed 2026-10-19 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2776 changed 2026-07-13 | CC-BY-4.0 |