See how open babel compares to other vendors in security performance
Open Babel through 3.2.1 contains a use-after-free vulnerability in OBForceField::Setup() that leaves stored constraints bound to freed atoms when set up with an empty molecule. Attackers can supply a molecule file yielding an empty molecule so later SteepestDescent() or ConjugateGradients() calls read freed memory, causing crashes or incorrect results.
Open Babel 3.2.0 was tagged on 2026-05-26 and ships fixes for 24 publicly-assigned CVEs in the chemistry file-format parsers, plus a larger pool of OSS-Fuzz-discovered memory-safety bugs that were not individually assigned CVE IDs. All issues are reachable through the public OBConversion::ReadFile / WriteFile API, the obabel CLI, or the language bindings, so downstream distributions parsing untrusted chemistry files should plan to update or backport.
Project: Open Babel (https://openbabel.org/) Affected: all releases <= 3.1.1 Fixed in: 3.2.0 (https://github.com/openbabel/openbabel/releases/tag/openbabel-3-2-0) Advisory: https://github.com/openbabel/openbabel/blob/master/SECURITY.md
== CVE-2026 batch (reported by Vedant Madane; PR #2862) ==
CVE-2026-2704 CIF transform3d::DescribeAsString out-of-bounds read CVE-2026-2705 MOL2 OBAtom::SetFormalCharge NULL dereference CVE-2026-3408 CDXML OBAtom::GetExplicitValence NULL dereference
== CVE-2025 batch (reported via OSS-Fuzz; PR #2913) ==
CVE-2025-10994 GAMESSOutputFormat::ReadMolecule use-after-free CVE-2025-10995 zipstream basicunzipstreambuf overlapping memcpy CVE-2025-10996 OBSmilesParser::ParseSmiles heap-buffer-overflow CVE-2025-10997 ChemKinFormat::CheckSpecies heap-buffer-overflow CVE-2025-10998 ChemKinFormat::ReadReactionQualifier NULL dereference CVE-2025-10999 CacaoFormat::SetHilderbrandt NULL dereference CVE-2025-11000 PQS lowerit out-of-bounds read
== CVE-2022 batch (reported by Cisco TALOS; PRs #2883-#2887) ==
CVE-2022-37331 Gaussian coordstype orientation OOB write CVE-2022-41793 CSR PadString title OOB write CVE-2022-42885 GRO res uninitialized pointer CVE-2022-43467 PQS coordfile OOB write CVE-2022-43607 MOL2 attribute/value OOB write CVE-2022-44451 MSI atom uninitialized pointer CVE-2022-46280 PQS pFormat uninitialized pointer CVE-2022-46289 ORCA nAtoms OOB write CVE-2022-46290 ORCA nAtoms OOB write CVE-2022-46291 Gaussian translationVectors[] OOB write CVE-2022-46292 MOPAC translationVectors[] (UNIT CELL) OOB write CVE-2022-46293 MOPAC translationVectors[] (FINAL PT) OOB write CVE-2022-46294 MOPAC IN translationVectors[] (Tv) OOB write CVE-2022-46295 MSI translationVectors[] OOB write
The full per-CVE table with patch commits is in SECURITY.md on the release branch:
https://github.com/openbabel/openbabel/blob/openbabel-3-2-0/SECURITY.md
Reproducers for each CVE are checked in under test/files/fuzzregress/ and run on every CI build through the fuzzregresstest harness, with an ASAN+UBSAN job to catch regressions.
== Additional hardening (no individual CVE IDs) ==
3.2.0 also lands a large set of OSS-Fuzz / Trail of Bits / ADA Logics (Claude Mythos) fixes across MCDL, ChemDraw CDX, ChemKin, abinit, CACAO, Gaussian (including z-matrix and cube), Molpro, POV-Ray, Tinker, SMARTS, MDL V3000, SDF, CIF, and the SMILES canonicalizer. Hardening highlights:
- FindRings recursion converted to an iterative loop (stack smash) - Atom-count bounds, bond-loop bounds, charge bounds (+/-999) - SMARTS recursive '((' depth capped at 1000 - MCDL heavy-atom cap at 200 - Reject element numbers > 118 - std::uniqueptr adoption to close leaks / UAFs
A 5-second timeout was also added to canonical-label generation to prevent hangs on pathological inputs.
== Mitigation ==
Upgrade to Open Babel 3.2.0. Source tarball, signed git tag, and Python wheels (Linux x8664/aarch64, macOS, Windows) are available from the release page above. The fixes apply cleanly against 3.1.1 for distros wishing to backport; per-file PR references are in SECURITY.md.
== Credits ==
- Cisco TALOS (2022 batch) - Vedant Madane (2026 batch) - OSS-Fuzz, Trail of Bits, ADA Logics (Arthur Chan), Claude Mythos / Claude Security (ongoing fuzzing reports) - David Korczynski (#2874), tyler92 (#2737), catenacyber (#2342) for the fuzz-harness infrastructure
Thanks to all the reporters and the fuzzing infrastructure teams.
-- Geoff Hutchison Open Babel maintainer oss-security () lists openwall com
Summary
A memory-safety vulnerability in Open Babel's MOL2 file format parser caused a NULL pointer dereference when reading a crafted input file.
Details
The flaw was in OBAtom::SetFormalCharge as called from the MOL2 parser. A malformed atom record caused the parser to call the method on a NULL atom pointer.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious MOL2 file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/e23a224b Tracked in #2862.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported by Vedant Madane (@VedantMadane) via VulDB.
### Summary A memory-safety vulnerability in Open Babel's CIF file format parser allowed an out-of-bounds read when reading a crafted input file. ### Details The flaw was in OpenBabel::transform3d::DescribeAsString. A malformed symmetry-operation string caused the parser to read past the end of its internal buffer while formatting the description. ### Impact Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious CIF file with the obabel tool, the OBConversion API, or any of the language bindings. ### Affected versions All releases up to and including 3.1.1. ### Patched version 3.2.0 (released 2026-05-26). ### Patch Fix commit: https://github.com/openbabel/openbabel/commit/e23a224b Tracked in #2862. A minimized reproducer for this CVE is checked in at test/files/fuzzregress/cve-2026-2704.cif and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness. ### Credit Reported by Vedant Madane (@VedantMadane).
Summary
A memory-safety vulnerability in Open Babel's PQS parser caused an out-of-bounds (pre-buffer) read when reading a crafted input file.
Details
The flaw was in the lowerit helper used by the PQS parser. A malformed input caused the helper to read one or more bytes before the start of its input buffer.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious PQS file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/f4a5ebae Fixes consolidated in #2913.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported via OSS-Fuzz.
Summary
A memory-safety vulnerability in Open Babel's CACAO parser caused a NULL pointer dereference when reading a crafted input file.
Details
The flaw was in CacaoFormat::SetHilderbrandt. A malformed input caused the parser to dereference a NULL pointer while applying the Hilderbrandt transformation.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious CACAO file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/ecaed96f Originally reported as #2827; fixes consolidated in #2913.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported via OSS-Fuzz.
Summary
A memory-safety vulnerability in Open Babel's ChemKin parser caused a NULL pointer dereference when reading a crafted input file.
Details
The flaw was in ChemKinFormat::ReadReactionQualifierLines. A malformed reaction qualifier record caused the parser to dereference a NULL pointer.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious ChemKin file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/af4a4212 Originally reported as #2829; fixes consolidated in #2913.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported via OSS-Fuzz.
Summary
A memory-safety vulnerability in Open Babel's ChemKin parser caused a heap buffer overflow when reading a crafted input file.
Details
The flaw was in ChemKinFormat::CheckSpecies. A malformed species record caused the parser to write past the end of a heap-allocated buffer.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious ChemKin file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/af4a4212 Originally reported as #2830; fixes consolidated in #2913.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported via OSS-Fuzz.
Summary
A memory-safety vulnerability in Open Babel's SMILES parser caused a heap buffer overflow when reading a crafted input string.
Details
The flaw was in OBSmilesParser::ParseSmiles. A malformed SMILES input caused the parser to write past the end of a heap-allocated buffer.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to parse a malicious SMILES string with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP). SMILES strings are commonly passed on the command line and through scripted pipelines, so this primitive is especially reachable.
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/b34cd604 Originally reported as #2831; fixes consolidated in #2913.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported via OSS-Fuzz.
Summary
A memory-safety vulnerability in Open Babel's bundled zipstream decompression code caused an out-of-bounds write via overlapping memcpy when reading a crafted gzip-compressed chemistry file.
Details
The flaw was in basicunzipstreambuf::underflow. The decompression buffer refill path invoked memcpy with overlapping source and destination regions, which is undefined behavior and produced out-of-bounds writes in practice. Any file format read through the gzip-wrapped reader was a potential trigger.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious gzip-compressed chemistry file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/d4621d41 Originally reported as #2832; fixes consolidated in #2913.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported via OSS-Fuzz.
Summary
A memory-safety vulnerability in Open Babel's GAMESS output parser caused a use-after-free when reading a crafted input file.
Details
The flaw was in GAMESSOutputFormat::ReadMolecule. A malformed input caused the parser to dereference a stale pointer after the underlying object had been freed.
Impact
Open Babel is a C++ library and CLI used to read and write chemistry file formats; it is shipped by Linux distributions and embedded in services that may parse untrusted input. Triggering this vulnerability requires the victim to open a malicious GAMESS output file with the obabel tool, the OBConversion API, or any of the language bindings (Python, Ruby, Java, R, Perl, C#, PHP).
Affected versions
All releases up to and including 3.1.1.
Patched version
3.2.0 (released 2026-05-26).
Patch
Fix commit: https://github.com/openbabel/openbabel/commit/95033d27 Originally reported as #2834; fixes consolidated in #2913.
A minimized reproducer for this CVE is checked in under test/files/fuzzregress/ and is exercised on every CI build under ASAN+UBSAN by the fuzzregresstest harness.
Credit
Reported via OSS-Fuzz.