pymatgen · Critical Security Vulnerability Exists
Affects pymatgenSource GCVE Database
Public exploit available (Exploit-DB) · CVSS 9.3 Critical.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 3.8% chance of exploitation in 30 days – higher than 90% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 21 Feb 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
Timeline
CVE published
on cve.org
, t = 0
First Exploit-DB entry (opens in a new tab)
Pymatgen 2024.1 - Remote Code Execution (RCE)
, 1.1 years after disclosure
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 22.04 LTSpymatgenpkg:deb/ubuntu/pymatgen?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-23346 (opens in a new tab)
- github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f (opens in a new tab)
- github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-23346 (opens in a new tab)