All CVEs / Materialsvirtuallab
CVE-2024-23346Materialsvirtuallab Pymatgen
High 7.8
Follow: this CVE · Materialsvirtuallab · Materialsvirtuallab Pymatgen We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 4.9% probability of exploitation in 30 days · percentile 93
- Auth required
- Yes
- Published
- Feb 21, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-77
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pymatgen.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pymatgen |
< 2024.2.20 |
2024.2.20 |
pip install "pymatgen>=2024.2.20" |
| PyPI | pymatgen |
< 2024.2.20 |
2024.2.20 |
pip install "pymatgen>=2024.2.20" |
Per OSV / GitHub Advisories (GHSA-vgv8-5cpj-qj2f, PYSEC-2024-226). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| materialsvirtuallab | pymatgen | < 2024.2.20 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Patch
- github.com Exploit Vendor Advisory
- www.vicarius.io Exploit Third Party Advisory