CVE-2022-46290: Critical severity openbabel Open Babel vulnerability
Summary
A memory-safety vulnerability in Open Babel's ORCA parser allowed an out-of-bounds write when reading a crafted input file.
Details
A second variant of the nAtoms out-of-bounds write in the ORCA reader: a different malformed-input path produced the same class of write past the end of the destination buffer.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious ORCA file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/b239d06e
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported by Cisco TALOS.
Other sources
Multiple out-of-bounds write vulnerabilities exist in the ORCA format nAtoms functionality of Open Babel 3.1.1 and master commit 530dbfa3. A specially-crafted malformed file can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.The loop that stores the coordinates does not check its index against nAtoms
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/openbabelto a version that resolves this vulnerability.Fixed in 3.2.0 - Upgrade
Upgrade
debian/openbabelto a version that resolves this vulnerability.Fixed in 3.2.0+dfsg-1~exp - Upgrade
Upgrade
Open Babelto a version that resolves this vulnerability.Fixed in 3.2.0Patch b239d06e - Compensating control
Avoid parsing attacker-controlled ORCA files with Open Babel’s `obabel` CLI, the `OBConversion` API, or any language bindings; do not open malicious ORCA files that could trigger the ORCA `nAtoms` out-of-bounds write.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-46290?
The severity of CVE-2022-46290 is critical with a CVSS score of 7.8.
What is the affected software in CVE-2022-46290?
The affected software in CVE-2022-46290 is Open Babel version 3.1.1.
How can an attacker exploit CVE-2022-46290?
An attacker can exploit CVE-2022-46290 by providing a specially-crafted malformed file that can lead to arbitrary code execution.
Is there a fix available for CVE-2022-46290?
Yes, a fix for CVE-2022-46290 is available. It is recommended to update to a patched version of Open Babel.
Where can I find more information about CVE-2022-46290?
More information about CVE-2022-46290 can be found at this link: https://talosintelligence.com/vulnerability_reports/TALOS-2022-1665