# CVE-2026-2705: Open Babel MOL2 File atom.h SetFormalCharge out-of-bounds

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 60% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-02-19T05:02:07.101Z
- Modified: 2026-07-13T16:43:30.010Z
- Also known as: GHSA-4w5w-4fhm-q483, PYSEC-2026-2770
- Weaknesses: CWE-119, CWE-125, CWE-476
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- Open Babel: 3.1.0; 3.1.1
- openbabel (PyPI): before 3.2.0
- openbabel open_babel: up to 3.1.1

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 4.3 Medium `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`
- VulDB: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C`
- GitHub: CVSS:3.1 5.5 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/openbabel/openbabel/issues/2848> (exploit, issue-tracking, web)
- <https://github.com/oneafter/0128/blob/main/ob2/repro.mol2> (exploit, web)
- <https://vuldb.com/?id.346651> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.346651> (permissions-required, signature, vdb-entry, web)
- <https://vuldb.com/?submit.754379> (third-party-advisory, vdb-entry, web)
- <https://github.com/openbabel/openbabel/pull/2862> (issue-tracking, patch, web)
- <https://github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a> (patch, web)
- <https://github.com/openbabel/openbabel/security/advisories/GHSA-4w5w-4fhm-q483> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-2705> (advisory)
- <https://github.com/openbabel/openbabel> (package)
- <https://pypi.org/project/openbabel> (package)
- <https://github.com/advisories/GHSA-4w5w-4fhm-q483> (advisory)

## Sources

- CVE List: [CVE-2026-2705](https://www.cve.org/CVERecord?id=CVE-2026-2705), CVE Terms of Use, modified 2026-03-03
- GitHub Advisory Database: [GHSA-4w5w-4fhm-q483](https://github.com/advisories/GHSA-4w5w-4fhm-q483), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-2705](https://nvd.nist.gov/vuln/detail/CVE-2026-2705), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2770](https://osv.dev/vulnerability/PYSEC-2026-2770), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-2705 · Whole record: https://cve.day/CVE-2026-2705.json · Rebuilt by cve.day 2026-11-25T22:59:14.091Z
