CVE-2026-2705Open Babel MOL2 File atom.h SetFormalCharge out-of-bounds
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | openbabel | Fix pending | UBUNTU-CVE-2026-2705 | |
| Ubuntu 26.04 | openbabel | Under investigation | UBUNTU-CVE-2026-2705 | |
| Ubuntu 25.10 | openbabel | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-2705 | |
| Ubuntu 24.04 | openbabel | Under investigation | UBUNTU-CVE-2026-2705 | |
| Ubuntu 22.04 | openbabel | Under investigation | UBUNTU-CVE-2026-2705 | |
| Ubuntu 20.04 | openbabel | Fix pending | UBUNTU-CVE-2026-2705 | |
| Ubuntu 18.04 | openbabel | Fix pending | UBUNTU-CVE-2026-2705 | |
| Ubuntu 16.04 | openbabel | Fix pending | UBUNTU-CVE-2026-2705 | |
| Debian 14 | openbabel | Fixed | 3.2.0+dfsg-1 | DEBIAN-CVE-2026-2705 |
| Debian 13 | openbabel | Fix pending | DEBIAN-CVE-2026-2705 | |
| Debian 12 | openbabel | Fix pending | DEBIAN-CVE-2026-2705 | |
| PyPI library | openbabel | Fixed | 3.2.0 | PYSEC-2026-2770 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Open Babel: affected: 3.1.0, 3.1.1
Vendor advisories:
- https://github.com/openbabel/openbabel/pull/2862 (patch)
- https://github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a (patch)
References
- https://vuldb.com/?id.346651
- https://vuldb.com/?ctiid.346651
- https://vuldb.com/?submit.754379
- https://github.com/openbabel/openbabel/issues/2848
- https://github.com/openbabel/openbabel/pull/2862
- https://github.com/oneafter/0128/blob/main/ob2/repro.mol2
- https://github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.