CVE-2026-2705: Open Babel has NULL pointer dereference in MOL2 OBAtom::SetFormalCharge
A memory-safety vulnerability in Open Babel’s MOL2 file format parser caused a NULL pointer dereference when reading a crafted input file.
References
- github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a
- github.com/advisories/GHSA-4w5w-4fhm-q483
- github.com/oneafter/0128/blob/main/ob2/repro.mol2
- github.com/openbabel/openbabel/issues/2848
- github.com/openbabel/openbabel/pull/2862
- github.com/openbabel/openbabel/security/advisories/GHSA-4w5w-4fhm-q483
- nvd.nist.gov/vuln/detail/CVE-2026-2705
- vuldb.com/?ctiid.346651
- vuldb.com/?id.346651
- vuldb.com/?submit.754379
Code Behaviors & Features
Detect and mitigate CVE-2026-2705 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →