CVE-2022-46292
High · 7.8CVSS
7.8
EPSS
0.8%
Published
Jul 21, 2023
CISA due date
—
Cloudanix analysis
A bug in widely used chemistry file software lets attackers take over a computer when a user opens a specially made data file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds write during parsing of the Unit Cell Translation section in MOPAC files leads to arbitrary code execution.
Why it matters to the business
Systems that process molecular or chemistry data files can be compromised, allowing attackers to execute code and disrupt research, analysis, or production workflows that depend on the software.
How an attack unfolds
An attacker creates a malformed MOPAC file containing crafted data in the Unit Cell Translation section. The file is delivered to a target who opens it using the vulnerable software, triggering the memory corruption and resulting in arbitrary code execution.
How to fix it
Upgrade Open Babel to a version that corrects the MOPAC parsing logic; avoid processing untrusted files until patched.
How to confirm the fix worked
Confirm the installed version is newer than the vulnerable commit, then test file parsing with both benign and known-malformed MOPAC samples to verify absence of crashes or unexpected behavior.
Typical attack path
- Craft a malicious MOPAC file with malformed Unit Cell Translation data
- Deliver the file to the target via email, download, or shared storage
- Victim opens the file using the vulnerable Open Babel parser
- Out-of-bounds write occurs and attacker-controlled code executes
How to detect it
Monitor process logs and crash reports for Open Babel when handling MOPAC files; look for unexpected memory faults or execution anomalies during translation vector parsing.
What your security team should do
- Block or sandbox processing of untrusted MOPAC files until updates are applied
- Update Open Babel across all affected systems as soon as a fixed release is available
- Review and restrict file-handling workflows that accept external molecular data files
The record
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 Unit Cell Translation section
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | openbabel | 0 | No fix |
| Debian:12 | openbabel | 0 | No fix |
| Debian:13 | openbabel | 0 | No fix |
| Debian:14 | openbabel | 0 | No fix |
| Ubuntu:16.04:LTS | openbabel | 0 | No fix |
| Ubuntu:18.04:LTS | openbabel | 0 | No fix |
| Ubuntu:20.04:LTS | openbabel | 0 | No fix |
| Ubuntu:22.04:LTS | openbabel | 0 | No fix |
| Ubuntu:24.04:LTS | openbabel | 0 | No fix |
| Ubuntu:24.10 | openbabel | 0 | No fix |
| Ubuntu:25.04 | openbabel | 0 | No fix |
| Ubuntu:25.10 | openbabel | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | openbabel | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | openbabel | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | openbabel | 0 | No fix |
| openSUSE:Leap 16.0 | openbabel | 0 | 3.2.0-bp160.1.1 |
Related vulnerabilities
- CVE-2022-46294 Multiple out-of-bounds write vulnerabilities exist in the translationVectors parsing… Also affects openbabel
- CVE-2022-46293 Multiple out-of-bounds write vulnerabilities exist in the translationVectors parsing… Also affects openbabel
- CVE-2022-46295 Multiple out-of-bounds write vulnerabilities exist in the translationVectors parsing… Also affects openbabel
- CVE-2022-37331 An out-of-bounds write vulnerability exists in the Gaussian format orientation… Also affects openbabel
- CVE-2022-43607 An out-of-bounds write vulnerability exists in the MOL2 format attribute and value… Also affects openbabel
- CVE-2022-42885 A use of uninitialized pointer vulnerability exists in the GRO format res functionality… Also affects openbabel
- CVE-2022-41793 An out-of-bounds write vulnerability exists in the CSR format title functionality of Open… Also affects openbabel
- CVE-2022-43467 An out-of-bounds write vulnerability exists in the PQS format coord_file functionality of… Also affects openbabel