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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Open Babel | 3.1.0, 3.1.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | openbabel | 3.2.0+dfsg-1 | — |
| Debian 13 | openbabel | No fix yet | — |
| Debian 12 | openbabel | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | openbabel | No fix yet | — |
| Ubuntu 26.04 LTS | openbabel | No fix yet | — |
| Ubuntu 25.10 | openbabel | No fix yet | — |
| Ubuntu 24.04 LTS | openbabel | No fix yet | — |
| Ubuntu 22.04 LTS | openbabel | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | openbabel | No fix yet | — |
| Ubuntu 18.04 LTS | openbabel | No fix yet | — |
| Ubuntu 16.04 LTS | openbabel | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | openbabel | 3.2.0-1.1 | openSUSE-SU-2026:10936-1 |
| openSUSE Leap 16.0 | openbabel | 3.2.0-bp160.1.1 | openSUSE-SU-2026:21190-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | openbabel | < 3.2.0 | 3.2.0 | GHSA-4w5w-4fhm-q483 |
Advisories 2
- openSUSE-SU-2026:21190-1 Security update for openbabel SUSE / openSUSE Security Updates · Jul 3, 2026
- openSUSE-SU-2026:10936-1 libopenbabel8-3.2.0-1.1 on GA media SUSE / openSUSE Security Updates · Jun 3, 2026
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