CVE-2026-136903 in Open Babelinfo

Summary

by MITRE • 11/25/2026

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.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in Open Babel versions through 3.2.1 represents a critical use-after-free condition within the OBForceField::Setup function. This flaw arises from improper management of object lifecycles when processing molecular data structures that result in empty molecules. Specifically, during the setup phase of force field calculations, the software fails to properly invalidate or nullify references to atom objects after they have been deallocated due to an empty input state. Consequently, internal constraints remain bound to memory addresses that no longer hold valid atomic data. This creates a dangling pointer scenario where subsequent operations attempt to access resources that have already been released by the system allocator.

The technical mechanism of this exploitation relies on the specific sequence of method calls within the computational chemistry workflow. An attacker can craft or supply a molecule file designed to yield an empty molecular structure upon parsing. When OBForceField::Setup is invoked with such input, it proceeds through its initialization routine without adequately clearing out previously stored constraint references tied to atoms that are subsequently freed. The vulnerability manifests when subsequent optimization algorithms, specifically SteepestDescent() or ConjugateGradients(), are executed. These methods rely on the integrity of the force field data structure and attempt to read from the memory locations associated with the now-freed atom objects. Because the memory has been reallocated or is otherwise invalid, accessing it constitutes a use-after-free error.

The operational impact of this vulnerability includes both denial of service and potential code execution scenarios depending on the runtime environment and compiler optimizations. The immediate consequence observed in standard usage is application instability, manifesting as crashes due to segmentation faults when the program attempts to dereference null or garbage pointers. However, beyond simple crashes, use-after-free vulnerabilities are historically significant for their potential to lead to arbitrary code execution. By carefully controlling the memory layout through repeated allocations and deallocations following the initial exploit trigger, an attacker might be able to overwrite adjacent heap metadata or function pointers. This could allow for control flow hijacking, leading to remote code execution if Open Babel is integrated into a service that processes untrusted molecular data files from external sources.

From a classification perspective, this vulnerability aligns with CWE-416, Use After Free, which describes the error of using memory after it has been freed. The attack vector involves supplying malicious input to trigger the flawed logic path, placing it within the context of improper input validation and resource management failures. In terms of adversary tactics, this could be leveraged in attacks categorized under MITRE ATT&CK techniques related to initial access or execution via vulnerable components, particularly if Open Babel is used as part of a larger pipeline processing uploaded chemical structures for analysis or visualization services.

Mitigation strategies must focus on both immediate patching and long-term defensive coding practices. The primary remediation is to upgrade the software to version 3.2.1 or later where this specific logic error in OBForceField::Setup has been addressed by developers who likely added checks to ensure constraints are cleared when molecules are empty. For environments unable to immediately update, input validation should be implemented at the ingestion layer to reject malformed or empty molecule files before they reach the force field setup routine. Additionally, employing memory sanitization tools such as AddressSanitizer during development and testing phases can help detect similar use-after-free conditions in other parts of the codebase that may not yet have been discovered. Regular security audits focusing on C++ resource management patterns are recommended to prevent recurrence of this class of vulnerabilities.

Responsible

VulnCheck

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00263

KEV

no

Activities

low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!