CVE-2022-46294 Open Babel has out-of-bounds write in MOPAC IN translationVectors[] (Tv atom)

Critical 9.8 Published Updated

A specially-crafted MOPAC Cartesian file can trigger an out-of-bounds write in Open Babel, leading to 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-46294?

CVE-2022-46294 is a critical 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

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 Cartesian file format

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2022-46294?

3 open source packages ship an affected version, including openbabel. It affects 1 product.

PackageAffectedFixed in
openbabel PyPIAll versions3.2.0
openbabel PyPIAll versions3.2.0
openbabel PyPIAll versions3.2.0

Products include Openbabel Open Babel.

How do I fix CVE-2022-46294?

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-46294 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46294 exists.

Sources

Also known as DEBIAN-CVE-2022-46294, GHSA-mjmg-352j-f456, PYSEC-2026-2786, UBUNTU-CVE-2022-46294.

Is CVE-2022-46294 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free