4.8medium
Open Babel smilesformat.cpp ParseSmiles heap-based overflow
- Severity
- 4.8medium CVSS:4.0 by VulDB
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulDB
- Also known as
- GHSA-j35x-w4gj-pf7wPYSEC-2026-2781
Description
A vulnerability was detected in Open Babel up to 3.1.1. This issue affects the function OBSmilesParser::ParseSmiles of the file /src/formats/smilesformat.cpp. Performing manipulation results in heap-based buffer overflow. The attack needs to be approached locally. The exploit is now public 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.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 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 |
Classification
What each source says
CVE List
A vulnerability was detected in Open Babel up to 3.1.1. This issue affects the function OBSmilesParser::ParseSmiles of the file /src/formats/smilesformat.cpp. Performing manipulation results in heap-based buffer overflow. The attack needs to be approached locally. The exploit is now public and may be used.
CVE List (de)
Eine Schwachstelle wurde in Open Babel up to 3.1.1 gefunden. Es ist betroffen die Funktion OBSmilesParser::ParseSmiles der Datei /src/formats/smilesformat.cpp. Durch Manipulation mit unbekannten Daten kann eine heap-based buffer overflow-Schwachstelle ausgenutzt werden. Der Angriff muss lokal angegangen werden. Die Ausnutzung wurde veröffentlicht und kann verwendet werden.
GitHub Advisory Database
Summary
A memory-safety vulnerability in Open Babel's SMILES parser caused a heap buffer overflow when reading a crafted input string.
Details
The flaw was in OBSmilesParser::ParseSmiles. A malformed SMILES
input caused the parser to write past the end of a heap-allocated
buffer.
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 parse a malicious SMILES string with the
obabel tool, the OBConversion API, or any of the language
bindings (Python, Ruby, Java, R, Perl, C#, PHP). SMILES strings are
commonly passed on the command line and through scripted pipelines,
so this primitive is especially reachable.
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/b34cd604 Originally reported as #2831; 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 fue detectada en Open Babel hasta 3.1.1. Este problema afecta a la función OBSmilesParser::ParseSmiles del archivo /src/formats/smilesformat.cpp. Realizar una manipulación resulta en un desbordamiento de búfer basado en montículo. El ataque necesita ser abordado localmente. El exploit es ahora público y puede ser usado.
References
| https://vuldb.com/?id.325924 | technical-description, third-party-advisory, vdb-entry, web | |
| https://vuldb.com/?ctiid.325924 | permissions-required, signature, vdb-entry, web | |
| https://vuldb.com/?submit.654060 | third-party-advisory, vdb-entry, web | |
| https://github.com/openbabel/openbabel/issues/2831 | exploit, issue-tracking, web | |
| https://github.com/user-attachments/files/22318556/poc.zip | exploit, web | |
| https://github.com/openbabel/openbabel/security/advisories/GHSA-j35x-w4gj-pf7w | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-10996 | advisory | |
| https://github.com/openbabel/openbabel/pull/2913 | web | |
| https://github.com/openbabel/openbabel/commit/b34cd604 | web | |
| https://github.com/openbabel/openbabel | package | |
| https://pypi.org/project/openbabel | package | |
| https://github.com/advisories/GHSA-j35x-w4gj-pf7w | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-10996 changed 2025-09-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j35x-w4gj-pf7w changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2025-10996 changed 2026-10-19 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2781 changed 2026-07-13 | CC-BY-4.0 |