CVE-2026-2704: Open Babel CIF File transform3d.cpp DescribeAsString out-of-bounds

Published Feb 19, 2026
·
Updated

### 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).

Other sources

A security vulnerability has been detected in Open Babel up to 3.1.1. The affected element is the function OpenBabel::transform3d::DescribeAsString of the file src/math/transform3d.cpp of the component CIF File Handler. The manipulation leads to out-of-bounds read. It is possible to initiate the attack remotely. The exploit has been disclosed publicly and may be used. Upgrading to version 3.2.0 is sufficient to fix this issue. The identifier of the patch is e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a. It is suggested to install a patch to address this issue.

— MITRE

Affected Software

15 affected componentsFixes available
Open Babel Open Babel<=3.1.1
openbabel Open Babel<=3.1.1
pip/openbabel<3.2.0
3.2.0
ubuntu/openbabel*
ubuntu/openbabel*
ubuntu/openbabel*
ubuntu/openbabel*
ubuntu/openbabel*
ubuntu/openbabel*
ubuntu/openbabel*
ubuntu/openbabel*
debian/openbabel*
debian/openbabel*
debian/openbabel<3.2.0+dfsg-1
3.2.0+dfsg-1
debian/openbabel<=3.1.1+dfsg-9, <=3.1.1+dfsg-12
3.2.0+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/openbabel to a version that resolves this vulnerability.

    Fixed in 3.2.0
  2. Upgrade

    Upgrade debian/openbabel to a version that resolves this vulnerability.

    Fixed in 3.2.0+dfsg-1
  3. Upgrade

    Upgrade debian/openbabel to a version that resolves this vulnerability.

    Fixed in 3.2.0+dfsg-2
  4. Upgrade

    Upgrade Open Babel to a version that resolves this vulnerability.

    Fixed in 3.2.0Patch e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a
  5. Compensating control

    Until upgraded, avoid having `obabel`/Open Babel parse attacker-controlled chemistry CIF files (untrusted input) via the Open Babel CLI (`obabel`), the OBConversion API, or language bindings.

Event History

Feb 19, 2026
CVE Published
via MITRE·04:32 AM
Data Sourced
via MITRE·04:32 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:17 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:17 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:12 PM
Affected Software
Updated
via NVD·08:12 PM
Severity
Mar 1, 2026
Event
via FIRST·12:00 AM
Updated
via MITRE·07:07 AM
DescriptionSeverity
Updated
via NVD·07:15 AM
Description
May 28, 2026
Updated
via MITRE·05:52 PM
Description
Updated
via NVD·06:16 PM
DescriptionSeverity
Event
via NVD·06:16 PM
Jun 30, 2026
Advisory Published
via GitHub·06:46 PM
Data Sourced
via GitHub·06:46 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-2704?

CVE-2026-2704 has been classified as a security vulnerability that allows for potential out-of-bounds access.

2

How do I fix CVE-2026-2704?

To fix CVE-2026-2704, you should update Open Babel to version 3.1.2 or later.

3

What does CVE-2026-2704 affect?

CVE-2026-2704 affects the OpenBabel::transform3d::DescribeAsString function in the CIF File Handler of Open Babel versions up to 3.1.1.

4

What type of vulnerability is CVE-2026-2704?

CVE-2026-2704 is an out-of-bounds vulnerability that can lead to undefined behavior or potential data leakage.

5

Who is impacted by CVE-2026-2704?

Users and developers using Open Babel versions up to 3.1.1 are impacted by CVE-2026-2704.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203