{"id":"UBUNTU-CVE-2026-2705","details":"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.","modified":"2026-05-20T16:24:51.063006939Z","published":"2026-02-19T07:17:00Z","upstream":["CVE-2026-2705"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-2705"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-2705"},{"type":"REPORT","url":"https://github.com/openbabel/openbabel/issues/2848"},{"type":"REPORT","url":"https://github.com/oneafter/0128/blob/main/ob2/repro.mol2"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.346651"},{"type":"REPORT","url":"https://vuldb.com/?id.346651"},{"type":"REPORT","url":"https://vuldb.com/?submit.754379"}],"affected":[{"package":{"name":"openbabel","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/openbabel?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2+dfsg-2.2","2.3.2+dfsg-2.2build1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.3.2+dfsg-2.2build1","binary_name":"libchemistry-openbabel-perl"},{"binary_version":"2.3.2+dfsg-2.2build1","binary_name":"libopenbabel4v5"},{"binary_version":"2.3.2+dfsg-2.2build1","binary_name":"openbabel"},{"binary_name":"openbabel-gui","binary_version":"2.3.2+dfsg-2.2build1"},{"binary_version":"2.3.2+dfsg-2.2build1","binary_name":"python-openbabel"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2705.json"}},{"package":{"name":"openbabel","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/openbabel?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2+dfsg-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libchemistry-openbabel-perl","binary_version":"2.3.2+dfsg-3build1"},{"binary_version":"2.3.2+dfsg-3build1","binary_name":"libopenbabel4v5"},{"binary_name":"openbabel","binary_version":"2.3.2+dfsg-3build1"},{"binary_name":"openbabel-gui","binary_version":"2.3.2+dfsg-3build1"},{"binary_name":"python-openbabel","binary_version":"2.3.2+dfsg-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2705.json"}},{"package":{"name":"openbabel","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/openbabel?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1+dfsg-3","2.4.1+dfsg-3build1","2.4.1+dfsg-5.1","2.4.1+dfsg-6","3.0.0+dfsg-3","3.0.0+dfsg-3ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"libchemistry-openbabel-perl","binary_version":"3.0.0+dfsg-3ubuntu3"},{"binary_name":"libopenbabel6","binary_version":"3.0.0+dfsg-3ubuntu3"},{"binary_name":"openbabel","binary_version":"3.0.0+dfsg-3ubuntu3"},{"binary_version":"3.0.0+dfsg-3ubuntu3","binary_name":"openbabel-gui"},{"binary_name":"python3-openbabel","binary_version":"3.0.0+dfsg-3ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2705.json"}},{"package":{"name":"openbabel","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/openbabel?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.1+dfsg-6ubuntu1","3.1.1+dfsg-6ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.1+dfsg-6ubuntu5","binary_name":"libchemistry-openbabel-perl"},{"binary_name":"libopenbabel7","binary_version":"3.1.1+dfsg-6ubuntu5"},{"binary_version":"3.1.1+dfsg-6ubuntu5","binary_name":"openbabel"},{"binary_version":"3.1.1+dfsg-6ubuntu5","binary_name":"openbabel-gui"},{"binary_name":"python3-openbabel","binary_version":"3.1.1+dfsg-6ubuntu5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2705.json"}},{"package":{"name":"openbabel","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/openbabel?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.1+dfsg-9build2","3.1.1+dfsg-9ubuntu1","3.1.1+dfsg-9ubuntu2","3.1.1+dfsg-9ubuntu4","3.1.1+dfsg-9ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_name":"libchemistry-openbabel-perl","binary_version":"3.1.1+dfsg-9ubuntu5"},{"binary_version":"3.1.1+dfsg-9ubuntu5","binary_name":"libopenbabel7"},{"binary_name":"openbabel","binary_version":"3.1.1+dfsg-9ubuntu5"},{"binary_name":"openbabel-gui","binary_version":"3.1.1+dfsg-9ubuntu5"},{"binary_name":"python3-openbabel","binary_version":"3.1.1+dfsg-9ubuntu5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2705.json"}},{"package":{"name":"openbabel","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/openbabel?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.1+dfsg-11ubuntu3","3.1.1+dfsg-11ubuntu4"],"ecosystem_specific":{"binaries":[{"binary_name":"libchemistry-openbabel-perl","binary_version":"3.1.1+dfsg-11ubuntu4"},{"binary_name":"libopenbabel7","binary_version":"3.1.1+dfsg-11ubuntu4"},{"binary_version":"3.1.1+dfsg-11ubuntu4","binary_name":"openbabel"},{"binary_version":"3.1.1+dfsg-11ubuntu4","binary_name":"openbabel-gui"},{"binary_version":"3.1.1+dfsg-11ubuntu4","binary_name":"python3-openbabel"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2705.json"}},{"package":{"name":"openbabel","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/openbabel?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.1+dfsg-11ubuntu4","3.1.1+dfsg-11ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_name":"libchemistry-openbabel-perl","binary_version":"3.1.1+dfsg-11ubuntu5"},{"binary_name":"libopenbabel7","binary_version":"3.1.1+dfsg-11ubuntu5"},{"binary_version":"3.1.1+dfsg-11ubuntu5","binary_name":"openbabel"},{"binary_name":"openbabel-gui","binary_version":"3.1.1+dfsg-11ubuntu5"},{"binary_name":"python3-openbabel","binary_version":"3.1.1+dfsg-11ubuntu5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2705.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}