Critical severityNVD Advisory· Published Feb 21, 2024· Updated Aug 19, 2024
pymatgen arbitrary code execution when parsing a maliciously crafted JonesFaithfulTransformation transformation_string
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
2- materialsproject/pymatgenv5Range: < 2024.2.20
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-vgv8-5cpj-qj2fghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-23346ghsaADVISORY
- github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.pyghsax_refsource_MISCWEB
- github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5aghsax_refsource_MISCWEB
- github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2fghsax_refsource_CONFIRMWEB
- github.com/pypa/advisory-database/tree/main/vulns/pymatgen/PYSEC-2024-226.yamlghsaWEB
- www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346ghsaWEB
News mentions
0No linked articles in our index yet.