Vulnerabilities in pkg:pypi/openbabel
PACKAGECVE-2022-46292 is a HIGH (CVSS 7.8) open babel has out-of-bounds write vulnerability (CWE-787: Out-of-bounds Write) affecting Openbabel libraries in the PyPI ecosystem. The issue involves open babel has out-of-bounds write in mopac translationvectors[] (unit cell translation). Remediation is available by upgrading affected packages to version 3.2.0.
pkg:pypi/openbabel
Vulnerability advisories affecting package pkg:pypi/openbabel. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-55f6-pf8r-c2f4 | CVE-2022-46292 | HIGH | Open Babel has out-of-bounds write in MOPAC translationVectors[] (UNIT CELL TRANSLATION) |
| GHSA-hrvg-gx3j-wh53 | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in MOPAC translationVectors[] (UNIT CELL TRANSLATION) |
| GHSA-f8h2-c479-vqxf | CVE-2022-46295 | HIGH | Open Babel has out-of-bounds write in MSI translationVectors[] |
| GHSA-83c5-hghm-jg6r | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in MSI translationVectors[] |
| GHSA-mjmg-352j-f456 | CVE-2022-46294 | HIGH | Open Babel has out-of-bounds write in MOPAC IN translationVectors[] (Tv atom) |
| GHSA-jrjj-9h77-6vhv | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in MOPAC IN translationVectors[] (Tv atom) |
| GHSA-7h6r-6p76-68c9 | CVE-2022-46293 | HIGH | Open Babel has out-of-bounds write in MOPAC translationVectors[] (FINAL POINT) |
| GHSA-4r3q-94wc-xhq9 | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in MOPAC translationVectors[] (FINAL POINT) |
| GHSA-jg3h-pv7c-4f9c | CVE-2022-46291 | HIGH | Open Babel has out-of-bounds write in Gaussian translationVectors[] |
| GHSA-v5fw-q4pf-8p2h | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in Gaussian translationVectors[] |
| GHSA-5rff-8f7c-8jmw | CVE-2022-46290 | HIGH | Open Babel has out-of-bounds write in ORCA nAtoms parser (second variant) |
| GHSA-wj42-v2p3-fq2w | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in ORCA nAtoms parser (second variant) |
| GHSA-rj4c-r689-cm87 | CVE-2022-46289 | HIGH | Open Babel has out-of-bounds write in ORCA nAtoms parser |
| GHSA-g8f4-g673-rfw2 | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in ORCA nAtoms parser |
| GHSA-8qxc-57hf-hc9j | CVE-2022-46280 | HIGH | Open Babel has uninitialized pointer dereference in PQS pFormat |
| GHSA-7rcm-w6ff-j43w | - | CRITICAL | Duplicate Advisory: Open Babel has uninitialized pointer dereference in PQS pFormat |
| GHSA-jr2x-6qf6-q5mc | CVE-2022-44451 | HIGH | Open Babel has uninitialized pointer dereference in MSI atom parser |
| GHSA-x3cp-4x6w-vm7p | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in MOL2 attribute/value parser |
| GHSA-vjg6-gm8m-v5g6 | CVE-2022-43607 | HIGH | Open Babel has out-of-bounds write in MOL2 attribute/value parser |
| GHSA-qghv-8h77-699v | - | HIGH | Duplicate Advisory: Open Babel has out-of-bounds write in MOL2 attribute/value parser |
| GHSA-f29h-2h58-48r7 | CVE-2022-43467 | HIGH | Open Babel has out-of-bounds write in PQS coord_file parser |
| GHSA-vx29-rwgr-834p | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in PQS coord_file parser |
| GHSA-mw5r-wq2m-397c | CVE-2022-42885 | HIGH | Open Babel has uninitialized pointer dereference in GRO residue parser |
| GHSA-h632-qvv7-2623 | - | CRITICAL | Duplicate Advisory: Open Babel has uninitialized pointer dereference in GRO residue parser |
| GHSA-p594-7xw4-g76p | CVE-2022-41793 | HIGH | Open Babel has out-of-bounds write in CSR PadString (title field) |
| GHSA-jmf7-79p7-qchq | - | CRITICAL | Duplicate Advisory: Open Babel has out-of-bounds write in CSR PadString (title field) |
| GHSA-vr3p-gg26-45v9 | CVE-2022-37331 | HIGH | Open Babel has out-of-bounds write in Gaussian coords_type orientation parser |
| GHSA-8rrv-fjvg-6vcx | - | HIGH | Duplicate Advisory: Open Babel has out-of-bounds write in Gaussian coords_type orientation parser |
| GHSA-m982-7q3h-r784 | CVE-2025-11000 | MODERATE | Open Babel has out-of-bounds read in PQS lowerit (pre-buffer read) |
| GHSA-7x26-54jj-cvhr | - | LOW | Duplicate Advisory: Open Babel has out-of-bounds read in PQS lowerit (pre-buffer read) |
| GHSA-55j6-rjhx-hwfh | CVE-2025-10999 | MODERATE | Open Babel has NULL pointer dereference in CACAO CacaoFormat::SetHilderbrandt |
| GHSA-62mq-grc2-53j3 | - | LOW | Duplicate Advisory: Open Babel has NULL pointer dereference in CACAO CacaoFormat::SetHilderbrandt |
| GHSA-j9pp-7wfg-q7fj | CVE-2025-10998 | LOW | Open Babel has NULL pointer dereference in ChemKinFormat::ReadReactionQualifierLines |
| GHSA-hvp2-4h2f-26w4 | - | LOW | Duplicate Advisory: Open Babel has NULL pointer dereference in ChemKinFormat::ReadReactionQualifierLines |
| GHSA-8wq6-qh76-wpv9 | CVE-2025-10997 | HIGH | Open Babel has heap buffer overflow in ChemKin ChemKinFormat::CheckSpecies |
| GHSA-95gx-jmhp-5p29 | - | LOW | Duplicate Advisory: Open Babel has heap buffer overflow in ChemKin ChemKinFormat::CheckSpecies |
| GHSA-j35x-w4gj-pf7w | CVE-2025-10996 | HIGH | Open Babel has heap buffer overflow in SMILES OBSmilesParser::ParseSmiles |
| GHSA-9p6c-jcw8-x98f | - | LOW | Duplicate Advisory: Open Babel has heap buffer overflow in SMILES OBSmilesParser::ParseSmiles |
| GHSA-8j3x-m868-cpw8 | CVE-2025-10995 | LOW | Open Babel has out-of-bounds write (overlapping memcpy) in zipstream basic_unzip_streambuf::underflow |
| GHSA-5gfq-xrq4-34rj | - | LOW | Duplicate Advisory: Open Babel has out-of-bounds write (overlapping memcpy) in zipstream basic_unzip_streambuf::underflow |
| GHSA-pp85-5j63-xpq3 | CVE-2025-10994 | LOW | Open Babel has Use-after-free in GAMESS GAMESSOutputFormat::ReadMolecule |
| GHSA-5fgf-q57f-wwqf | - | LOW | Duplicate Advisory: Open Babel has Use-after-free in GAMESS GAMESSOutputFormat::ReadMolecule |
| GHSA-rxpr-wq63-jr7p | CVE-2026-3408 | LOW | Open Babel has a NULL pointer dereference in CDXML OBAtom::GetExplicitValence |
| GHSA-fg6r-xgp8-x64r | - | LOW | Duplicate Advisory: Open Babel has a NULL pointer dereference in CDXML OBAtom::GetExplicitValence |
| GHSA-4w5w-4fhm-q483 | CVE-2026-2705 | LOW | Open Babel has NULL pointer dereference in MOL2 OBAtom::SetFormalCharge |
| GHSA-3f56-w4g2-mx64 | - | LOW | Duplicate Advisory: Open Babel has NULL pointer dereference in MOL2 OBAtom::SetFormalCharge |
| GHSA-6xw4-2g22-26h8 | CVE-2026-2704 | LOW | Open Babel has an out-of-bounds read in CIF transform3d::DescribeAsString |
| GHSA-2m54-8m6g-qf93 | - | LOW | Duplicate Advisory: Open Babel has an out-of-bounds read in CIF transform3d::DescribeAsString |
CVE-2022-46292 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-46292
To remediate this vulnerability, upgrade all affected Openbabel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install openbabel>=3.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show openbabel
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-46292, inspect your installed packages using pip:
pip show openbabel
Analyze the terminal output to locate any version of Openbabel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.0), your application is affected.
Note: The pip show openbabel command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Openbabel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-46292 Affected Openbabel Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openbabel
|
PyPI |
< 3.2.0
|
3.2.0
|
References
Frequently Asked Questions
What is CVE-2022-46292?
Which Openbabel versions are affected?
What version fixes CVE-2022-46292?
Is openbabel affected?
What is the CVSS score of CVE-2022-46292?
What CWE is associated with CVE-2022-46292?
How can I check PyPI dependencies for CVE-2022-46292?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-55f6-pf8r-c2f4",
"modified" : "2026-07-06T16:41:43Z",
"published" : "2026-07-06T16:41:43Z",
"aliases" : [ "CVE-2022-46292" ],
"summary" : "Open Babel has out-of-bounds write in MOPAC translationVectors[] (UNIT CELL TRANSLATION)",
"details" : "### Summary\n\nA memory-safety vulnerability in Open Babel's MOPAC output parser\nallowed an out-of-bounds write into the `translationVectors[]` array\nwhen reading the \"UNIT CELL TRANSLATION\" block of a crafted input\nfile.\n\n### Details\n\nThe MOPAC output reader stored translation vectors from the UNIT CELL\nTRANSLATION block into a fixed-size `translationVectors[]` array. A\nmalformed block could push more vectors than the array had slots,\ncausing a write past the end of the array. One of five\n`translationVectors[]` OOB writes in the TALOS 2022 batch.\n\n### Impact\n\nOpen Babel is a C++ library and CLI used to read and write chemistry\nfile formats; it is shipped by Linux distributions and embedded in\nservices that may parse untrusted input. Triggering this vulnerability\nrequires the victim to open a malicious MOPAC output file with the\n`obabel` tool, the `OBConversion` API, or any of the language\nbindings (Python, Ruby, Java, R, Perl, C#, PHP).\n\n### Affected versions\n\nAll releases up to and including 3.1.1.\n\n### Patched version\n\n3.2.0 (released 2026-05-26).\n\n### Patch\n\nFix commit: https://github.com/openbabel/openbabel/commit/40e85213\n\nA minimized reproducer for this CVE is checked in under\n`test/files/fuzz_regress/` and is exercised on every CI build under\nASAN+UBSAN by the `fuzzregresstest` harness.\n\n### Credit\n\nReported by Cisco TALOS.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "openbabel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/openbabel/openbabel/security/advisories/GHSA-55f6-pf8r-c2f4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-46292"
}, {
"type" : "WEB",
"url" : "https://github.com/openbabel/openbabel/commit/40e852138f21d586b7ccdce6329e7b23a87168bb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openbabel/openbabel"
}, {
"type" : "WEB",
"url" : "https://talosintelligence.com/vulnerability_reports/TALOS-2022-1666"
}, {
"type" : "WEB",
"url" : "https://www.talosintelligence.com/vulnerability_reports/TALOS-2022-1666"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119", "CWE-787" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-06T16:41:43Z",
"nvd_published_at" : null
}
}