RCE in Materialsproject Pymatgen
CVE-2024-23346
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.3 (Critical). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.038 (89.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 90th percentile — 89.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.038 · newest: 0.038 · change: 0.000
Affected products
- Materialsproject Pymatgen — versions < 2024.2.20
- Materialsvirtuallab Pymatgen
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f (Exploit, Vendor Advisory)
- github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376… (Patch)
- github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py (Broken Link)
- af854a3a-2127-422b-91ae-364da2661108 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-23346?
- CVE-2024-23346 is a critical-severity vulnerability in Materialsproject Pymatgen, classified under Command Injection. CVSS score: 9.3/10. Published 2024-02-21.
- How severe is CVE-2024-23346?
- Critical severity. CVSS v3 base score is 9.3 out of 10.
- Is CVE-2024-23346 known to be exploited?
- 12 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.