CVE-2022-41793
High · 7.8CVSS
7.8
EPSS
0.8%
Published
Jul 21, 2023
CISA due date
—
Cloudanix analysis
A bug in chemistry file handling software can let attackers take over a computer simply by tricking someone into opening a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds write in CSR format title parsing allows memory corruption that can be leveraged for arbitrary code execution when a malformed file is processed.
Why it matters to the business
Processing untrusted chemical structure files on affected systems can lead to full host compromise, data theft, or ransomware deployment with moderate urgency given low EPSS and no known active campaigns.
How an attack unfolds
An attacker crafts a malformed CSR file containing an oversized or invalid title field, delivers it to a victim who opens it with Open Babel or a dependent tool, triggering the out-of-bounds write that corrupts memory and allows shellcode execution.
How to fix it
Upgrade Open Babel to a version containing the fix for the CSR title parsing logic; if no fixed release is yet available, replace the library with a patched build or isolate file processing in a sandbox until an update is released.
How to confirm the fix worked
Confirm the installed Open Babel version is newer than 3.1.1 and master commit 530dbfa3; test by attempting to parse known-good and known-malformed CSR samples in a controlled environment and verify no crash or unexpected memory writes occur.
Typical attack path
- Create or obtain a specially crafted CSR file with malicious title data
- Deliver the file via email, download link, or shared storage
- Victim opens the file using Open Babel CLI, GUI, or an application that embeds the library
- Out-of-bounds write occurs during title parsing
- Attacker-supplied payload executes with the privileges of the Open Babel process
How to detect it
Review process creation logs and file-access telemetry for invocations of obabel or babel with CSR files; monitor for unexpected crashes or memory-corruption signals in chemistry-processing applications.
What your security team should do
- Inventory all systems and pipelines that invoke Open Babel or link against libopenbabel
- Apply available updates or rebuild from patched source as soon as a fixed version is published
- Restrict Open Babel execution to non-privileged accounts and sandboxed environments
- Add file-type filtering or content scanning before chemical file processing workflows
The record
An out-of-bounds write vulnerability exists in the CSR format title 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.
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-43467 An out-of-bounds write vulnerability exists in the PQS format coord_file functionality of… Also affects openbabel
- CVE-2022-46290 Multiple out-of-bounds write vulnerabilities exist in the ORCA format nAtoms… Also affects openbabel