{"cve":"CVE-2024-23346","nvd":{"published":"2024-02-21T17:15:09.377","modified":"2026-06-17T07:12:38.440","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-77"],"references":["https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108","https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a","https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f","https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108","https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a"],"products":["materialsvirtuallab:pymatgen"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-23346","score":0.03848,"percentile":0.90136,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vgv8-5cpj-qj2f","url":"https://osv.dev/vulnerability/GHSA-vgv8-5cpj-qj2f","summary":"pymatgen vulnerable to arbitrary code execution when parsing a maliciously crafted JonesFaithfulTransformation transformation_string","modified":"2026-06-10T17:14:18.255748286Z","packages":[{"ecosystem":"PyPI","name":"pymatgen","purl":"pkg:pypi/pymatgen","ranges":["<2024.2.20"],"fixed":["2024.2.20"]}]},{"id":"PYSEC-2024-226","url":"https://osv.dev/vulnerability/PYSEC-2024-226","summary":"","modified":"2026-06-10T17:14:18.077783090Z","packages":[{"ecosystem":"PyPI","name":"pymatgen","purl":"pkg:pypi/pymatgen","ranges":["<2024.2.20"],"fixed":["2024.2.20"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}