{"id":"CVE-2026-2705","aliases":["CVE-2026-2705","GHSA-4w5w-4fhm-q483","PYSEC-2026-2770"],"related":[],"kind":"vulnerability","state":"published","title":"Open Babel MOL2 File atom.h SetFormalCharge out-of-bounds","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA memory-safety vulnerability in Open Babel's MOL2 file format parser\ncaused a NULL pointer dereference when reading a crafted input file.\n\n### Details\n\nThe flaw was in `OBAtom::SetFormalCharge` as called from the MOL2\nparser. A malformed atom record caused the parser to call the method\non a NULL atom pointer.\n\n### Impact\n\nOpen Babel is a C++ library and CLI used to read and write chemistry\nfile formats; it is shipped by Linux distributions and embedded in\nservices that may parse untrusted input. Triggering this vulnerability\nrequires the victim to open a malicious MOL2 file with the `obabel`\ntool, the `OBConversion` API, or any of the language bindings (Python,\nRuby, Java, R, Perl, C#, PHP).\n\n### Affected versions\n\nAll releases up to and including 3.1.1.\n\n### Patched version\n\n3.2.0 (released 2026-05-26).\n\n### Patch\n\nFix commit: https://github.com/openbabel/openbabel/commit/e23a224b\nTracked in #2862.\n\nA minimized reproducer for this CVE is checked in under\n`test/files/fuzz_regress/` and is exercised on every CI build under\nASAN+UBSAN by the `fuzzregresstest` harness.\n\n### Credit\n\nReported by Vedant Madane (@VedantMadane) via VulDB.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una vulnerabilidad en Open Babel hasta la versión 3.1.1. La cual afecta a la función OBAtom::SetFormalCharge en la librería include/openbabel/atom.h del componente Gestor de Archivos MOL2. Si se manipula se puede provocar una lectura fuera de límites. Es posible lanzar el ataque de forma remota. El exploit es ahora público y puede ser utilizado. Se informó al proyecto con anterioridad a través de un informe de incidencias, pero aún no ha respondido.","source":"nvd"}],"published":"2026-02-19T05:02:07.101Z","modified":"2026-07-13T16:43:30.010Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","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","score":4.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"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","score":4.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-119","CWE-125","CWE-476"],"affected":[{"ranges":[{"version":"3.1.0","status":"affected"},{"version":"3.1.1","status":"affected"}],"product":"Open Babel","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.0"}],"ecosystem":"PyPI","package":"openbabel","purl":"pkg:pypi/openbabel","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.1.1"}],"vendor":"openbabel","product":"open_babel","cpe":"cpe:2.3:a:openbabel:open_babel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.0"}],"ecosystem":"PyPI","package":"openbabel","purl":"pkg:pypi/openbabel","source":"pysec"}],"references":[{"url":"https://vuldb.com/?id.346651","tags":["technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?ctiid.346651","tags":["permissions-required","signature","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?submit.754379","tags":["third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/openbabel/openbabel/issues/2848","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/openbabel/openbabel/pull/2862","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/oneafter/0128/blob/main/ob2/repro.mol2","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/openbabel/openbabel/security/advisories/GHSA-4w5w-4fhm-q483","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-2705","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/openbabel/openbabel","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/openbabel","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-4w5w-4fhm-q483","tags":["advisory"],"sources":["pysec"]}],"credits":["Oneafter (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-02-23T18:45:13.326Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-2705","url":"https://www.cve.org/CVERecord?id=CVE-2026-2705","licence":"CVE Terms of Use","modified":"2026-03-03T17:20:24.065Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4w5w-4fhm-q483","url":"https://github.com/advisories/GHSA-4w5w-4fhm-q483","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:30.010Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-2705","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-2705","licence":"Public domain","modified":"2026-06-17T10:31:34.540Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2770","url":"https://osv.dev/vulnerability/PYSEC-2026-2770","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:05.741Z"}],"updatedAt":"2026-11-25T22:59:14.091Z","epss":{"score":0.00942,"percentile":0.59546,"date":"2026-11-30T12:00:22.000Z"}}