Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. openbabel
  4. ›
  5. CVE-2026-2705

CVE-2026-2705: Open Babel has NULL pointer dereference in MOL2 OBAtom::SetFormalCharge

June 30, 2026

A memory-safety vulnerability in Open Babel’s MOL2 file format parser caused a NULL pointer dereference when reading a crafted input file.

References

  • github.com/VedantMadane/openbabel/commit/e23a224b8fd9d7c2a7cde9ef4ec6afb4c05aa08a
  • github.com/advisories/GHSA-4w5w-4fhm-q483
  • github.com/oneafter/0128/blob/main/ob2/repro.mol2
  • github.com/openbabel/openbabel/issues/2848
  • github.com/openbabel/openbabel/pull/2862
  • github.com/openbabel/openbabel/security/advisories/GHSA-4w5w-4fhm-q483
  • nvd.nist.gov/vuln/detail/CVE-2026-2705
  • vuldb.com/?ctiid.346651
  • vuldb.com/?id.346651
  • vuldb.com/?submit.754379

Code Behaviors & Features

Detect and mitigate CVE-2026-2705 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.2.0

Fixed versions

  • 3.2.0

Solution

Upgrade to version 3.2.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-476: NULL Pointer Dereference

Source file

pypi/openbabel/CVE-2026-2705.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 11 Jul 2026 00:16:26 +0000.