CVE-2022-46293: Buffer Overflow
Summary
A memory-safety vulnerability in Open Babel's MOPAC output parser allowed an out-of-bounds write into the translationVectors[] array when reading the "FINAL POINT" block of a crafted input file.
Details
The MOPAC output reader stored translation vectors from the FINAL POINT block into a fixed-size translationVectors[] array. A malformed block could push more vectors than the array had slots, causing a write past the end of the array. One of five translationVectors[] OOB writes in the TALOS 2022 batch.
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 MOPAC output 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/40e85213
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 translationVectors parsing functionality in multiple supported formats 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.This vulnerability affects the MOPAC file format, inside the Final Point and Derivatives section
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
openbabelto a version that resolves this vulnerability.Fixed in 3.2.0 - Upgrade
Upgrade
openbabelto a version that resolves this vulnerability.Patch 40e85213 - Upgrade
Upgrade
openbabelto a version that resolves this vulnerability.Patch 530dbfa3
Event History
Frequently Asked Questions
What is the vulnerability ID of the out-of-bounds write vulnerabilities in Open Babel 3.1.1?
The vulnerability ID is CVE-2022-46293.
What is the severity of CVE-2022-46293?
The severity of CVE-2022-46293 is critical.
How do the out-of-bounds write vulnerabilities in Open Babel 3.1.1 occur?
The vulnerabilities occur in the translationVectors parsing functionality when handling certain file formats.
What is the potential impact of these vulnerabilities?
These vulnerabilities can lead to arbitrary code execution when a specially-crafted malformed file is processed.
Is there a fix available for CVE-2022-46293?
Yes, the fix is available in the Open Babel 3.1.1 release and the master commit 530dbfa3.