Critical severity9.3NVD Advisory· Published Feb 21, 2024· Updated Jun 17, 2026
CVE-2024-23346
CVE-2024-23346
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pymatgenPyPI | < 2024.2.20 | 2024.2.20 |
Affected products
3- materialsproject/pymatgenv5Range: < 2024.2.20
Patches
Vulnerability mechanics
References
7- github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5anvdPatchWEB
- github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2fnvdExploitVendor AdvisoryWEB
- www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-vgv8-5cpj-qj2fghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-23346ghsaADVISORY
- github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.pynvdBroken LinkWEB
- github.com/pypa/advisory-database/tree/main/vulns/pymatgen/PYSEC-2024-226.yamlghsaWEB
News mentions
0No linked articles in our index yet.