CVE catalog

CVE-2024-23346

pymatgen: CVE-2024-23346

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
3.85% · Oct 25, 2026

Pymatgen (Python Materials Genomics) is an open-source Python library for materials analysis. A critical security vulnerability exists in the `JonesFaithfulTransformation.from_transformation_str()` method within the `pymatgen` library prior to version 2024.2.20. This method insecurely utilizes `eval()` for processing input, enabling execution of arbitrary code when parsing untrusted input. Version 2024.2.20 fixes this issue.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpymatgensid2026.5.4+dfsg1-1fixed
Debianpymatgentrixie2025.2.18+dfsg1-5fixed
Debianpymatgenbookworm2022.11.7+dfsg1-11+deb12u2fixed
Debianpymatgenbookworm-security2022.11.7+dfsg1-11+deb12u1fixed
Ubuntupymatgen22.042022.0.14+dfsg1-1vulnerable
Ubuntupymatgen22.042022.0.16+dfsg1-1vulnerable
Ubuntupymatgen22.042022.0.17+dfsg1-1vulnerable
Ubuntupymatgen22.042022.0.17+dfsg1-1build1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpymatgensourcesid2024.1.27+dfsg1-6not yet assignedNot reported[1064514]
Debianpymatgensourcetrixie2024.1.27+dfsg1-6not yet assignedNot reported[1064514]
Debianpymatgensourcebookworm2022.11.7+dfsg1-11+deb12u1not yet assignedNot reported[1064514]

[Debian bug #1064514]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References