Buffer overflow in Openbabel Open Babel
CVE-2026-2705
A vulnerability was detected in Open Babel up to 3.1.1. The impacted element is the function OBAtom::SetFormalCharge in the library include/openbabel/atom.h of the component MOL2 File Handler. The manipulation results in out-of-bounds read. It is possible to launch the attack remotely. The exploit is now public and may be used. The patch is identified as e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a. A patch should be applied to remediate this issue. The project was informed of the problem early through an issue report but has not responded yet.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.008, 58.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Openbabel Open Babel
- Open Babel — versions 3.1.0, 3.1.1
Weakness classification (CWE)
References
- VDB-346651 | Open Babel MOL2 File atom.h SetFormalCharge out-of-bounds (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-346651 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #754379 | openbabel master-branch NULL Pointer Dereference (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/openbabel/openbabel/issues/2848 (issue-tracking, Exploit, Issue Tracking)
- github.com/openbabel/openbabel/pull/2862 (issue-tracking, patch)
- github.com/oneafter/0128/blob/main/ob2/repro.mol2 (Exploit, exploit)
- github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa0… (patch)