
CVE catalog
CVE-2024-23346
pymatgen: CVE-2024-23346
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.85% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pymatgen | sid | 2026.5.4+dfsg1-1 | fixed |
| Debian | pymatgen | trixie | 2025.2.18+dfsg1-5 | fixed |
| Debian | pymatgen | bookworm | 2022.11.7+dfsg1-11+deb12u2 | fixed |
| Debian | pymatgen | bookworm-security | 2022.11.7+dfsg1-11+deb12u1 | fixed |
| Ubuntu | pymatgen | 22.04 | 2022.0.14+dfsg1-1 | vulnerable |
| Ubuntu | pymatgen | 22.04 | 2022.0.16+dfsg1-1 | vulnerable |
| Ubuntu | pymatgen | 22.04 | 2022.0.17+dfsg1-1 | vulnerable |
| Ubuntu | pymatgen | 22.04 | 2022.0.17+dfsg1-1build1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pymatgen | source | sid | 2024.1.27+dfsg1-6 | not yet assigned | Not reported | [1064514] |
| Debian | pymatgen | source | trixie | 2024.1.27+dfsg1-6 | not yet assigned | Not reported | [1064514] |
| Debian | pymatgen | source | bookworm | 2022.11.7+dfsg1-11+deb12u1 | not yet assigned | Not reported | [1064514] |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.