CVE-2022-37331 Open Babel has out-of-bounds write in Gaussian coords_type orientation parser
A crafted Gaussian file can trigger an out-of-bounds write in Open Babel, allowing arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-37331?
CVE-2022-37331 is a high-severity memory corruption vulnerability in Open Babel, published on 21 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An out-of-bounds write vulnerability exists in the Gaussian format orientation 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.
Which versions are affected by CVE-2022-37331?
3 open source packages ship an affected version, including openbabel. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
openbabel PyPI | All versions | 3.2.0 |
openbabel PyPI | All versions | 3.2.0 |
openbabel PyPI | All versions | 3.2.0 |
Products include Openbabel Open Babel.
How do I fix CVE-2022-37331?
Upgrade openbabel to 3.2.0 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-37331 being exploited?
There is no known exploitation of CVE-2022-37331 in the wild and no public exploit code.
Other vulnerabilities in Open Babel
- CVE-2022-41793 Open Babel has out-of-bounds write in CSR PadString (title field)
- CVE-2022-42885 Open Babel has uninitialized pointer dereference in GRO residue parser
- CVE-2022-43467 Open Babel has out-of-bounds write in PQS coord_file parser
- CVE-2022-44451 Open Babel has uninitialized pointer dereference in MSI atom parser
- CVE-2022-46280 Open Babel has uninitialized pointer dereference in PQS pFormat
Sources
Also known as DEBIAN-CVE-2022-37331, GHSA-vr3p-gg26-45v9, PYSEC-2026-2793, UBUNTU-CVE-2022-37331.