Vulnerability · Published Feb 19, 2026 · Assigned by VulDB
CVE-2026-2705Open Babel MOL2 File atom.h SetFormalCharge out-of-bounds
Medium 4.3
In plain English
A medium-severity out-of-bounds read in Open Babel. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | openbabel | no fix listed | DEBIAN-CVE-2026-2705 |
| Debian:13 | openbabel | no fix listed | DEBIAN-CVE-2026-2705 |
| Debian:14 | openbabel | 3.2.0+dfsg-1 | DEBIAN-CVE-2026-2705 |
| PyPI | openbabel | 3.2.0 | GHSA-4w5w-4fhm-q483 |
| PyPI | openbabel | 3.2.0 | PYSEC-2026-2770 |
| Ubuntu:22.04:LTS | openbabel | no fix listed | UBUNTU-CVE-2026-2705 |
| Ubuntu:24.04:LTS | openbabel | no fix listed | UBUNTU-CVE-2026-2705 |
| Ubuntu:25.10 | openbabel | no fix listed | UBUNTU-CVE-2026-2705 |
| Ubuntu:26.04:LTS | openbabel | no fix listed | UBUNTU-CVE-2026-2705 |
| Ubuntu:26.10 | openbabel | no fix listed | UBUNTU-CVE-2026-2705 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | Open Babel | 3.1.03.1.1 |
Weakness: CWE-125, CWE-119 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
References
- VDB-346651 | Open Babel MOL2 File atom.h SetFormalCharge out-of-bounds vdb-entry, technical-description
- VDB-346651 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #754379 | openbabel master-branch NULL Pointer Dereference third-party-advisory
- https://github.com/openbabel/openbabel/issues/2848 issue-tracking
- https://github.com/openbabel/openbabel/pull/2862 issue-tracking, patch
- https://github.com/oneafter/0128/blob/main/ob2/repro.mol2 exploit
- https://github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a patch