CVE-2024-23346: Pymatgen (Python Materials Genomics) is an open-source Python library for materials analysis
CVE-2024-23346 is a critical-severity flaw (CVSS 9.3) affecting pymatgen. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 10%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.3 (Critical) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 3.8% (top 10%) |
| CISA exploited list | No |
| Weakness | CWE-77 |
| Published | 2024-02-21 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: Pymatgen 2024.1 - Remote Code Execution (RCE)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-23346?
pymatgen: upgrade to 2024.2.20. Exact commands for each OS are on this page.
Is CVE-2024-23346 being exploited?
CVE-2024-23346 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-23346 affect?
CVE-2024-23346 affects pymatgen. Severity is critical (CVSS 9.3). 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
How urgent is CVE-2024-23346?
Priority 60/100. Critical severity; EPSS top 10%: very likely to be exploited; Public exploit reference