{"id":"CVE-2025-10995","aliases":["CVE-2025-10995","GHSA-8j3x-m868-cpw8","PYSEC-2026-2776"],"related":[],"kind":"vulnerability","state":"published","title":"Open Babel zipstreamimpl.h underflow memory corruption","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"de","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA memory-safety vulnerability in Open Babel's bundled zipstream\ndecompression code caused an out-of-bounds write via overlapping\n`memcpy` when reading a crafted gzip-compressed chemistry file.\n\n### Details\n\nThe flaw was in `basic_unzip_streambuf::underflow`. The decompression\nbuffer refill path invoked `memcpy` with overlapping source and\ndestination regions, which is undefined behavior and produced\nout-of-bounds writes in practice. Any file format read through the\ngzip-wrapped reader was a potential trigger.\n\n### Impact\n\nOpen Babel is a C++ library and CLI used to read and write chemistry\nfile formats; it is shipped by Linux distributions and embedded in\nservices that may parse untrusted input. Triggering this vulnerability\nrequires the victim to open a malicious gzip-compressed chemistry file\nwith the `obabel` tool, the `OBConversion` API, or any of the language\nbindings (Python, Ruby, Java, R, Perl, C#, PHP).\n\n### Affected versions\n\nAll releases up to and including 3.1.1.\n\n### Patched version\n\n3.2.0 (released 2026-05-26).\n\n### Patch\n\nFix commit: https://github.com/openbabel/openbabel/commit/d4621d41\nOriginally reported as #2832; fixes consolidated in #2913.\n\nA minimized reproducer for this CVE is checked in under\n`test/files/fuzz_regress/` and is exercised on every CI build under\nASAN+UBSAN by the `fuzzregresstest` harness.\n\n### Credit\n\nReported via OSS-Fuzz.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-26T02:02:10.346Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-119","CWE-787"],"affected":[{"ranges":[{"version":"3.1.0","status":"affected"},{"version":"3.1.1","status":"affected"}],"product":"Open Babel","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.0"}],"ecosystem":"PyPI","package":"openbabel","purl":"pkg:pypi/openbabel","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.1.1"}],"vendor":"openbabel","product":"open_babel","cpe":"cpe:2.3:a:openbabel:open_babel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.0"}],"ecosystem":"PyPI","package":"openbabel","purl":"pkg:pypi/openbabel","source":"pysec"}],"references":[{"url":"https://vuldb.com/?id.325923","tags":["technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?ctiid.325923","tags":["permissions-required","signature","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?submit.654059","tags":["third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/openbabel/openbabel/issues/2832","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/user-attachments/files/22318572/poc.zip","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/openbabel/openbabel/security/advisories/GHSA-8j3x-m868-cpw8","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-10995","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/openbabel/openbabel/issues/2913","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/openbabel/openbabel/commit/d4621d417c167b50cc8ce7aa3a02557e5b2b81c5","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/openbabel/openbabel","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/openbabel","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8j3x-m868-cpw8","tags":["advisory"],"sources":["pysec"]}],"credits":["ahuo (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-09-26T19:26:33.743Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-10995","url":"https://www.cve.org/CVERecord?id=CVE-2025-10995","licence":"CVE Terms of Use","modified":"2025-09-26T19:26:48.445Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8j3x-m868-cpw8","url":"https://github.com/advisories/GHSA-8j3x-m868-cpw8","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:47.317Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-10995","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-10995","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2776","url":"https://osv.dev/vulnerability/PYSEC-2026-2776","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:07.091Z"}],"updatedAt":"2026-11-25T22:59:05.203Z","epss":{"score":0.00284,"percentile":0.13547,"date":"2026-11-30T12:00:22.000Z"}}