CVE-2024-23346
CRITICAL9.3EPSS 54.9%pymatgen - security update
發布日:2024/2/21修改日:2026/4/28
描述
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.
受影響套件(4)
- Debian/pymatgenfrom 0, < 2022.11.7+dfsg1-11+deb12u1
- Debian/pymatgenfrom 0, < 2022.11.7+dfsg1-11+deb12u1
- PyPI/pymatgenfrom 0, < 2024.2.20
- PyPI/pymatgenfrom 0, < c231cbd3d5147ee920a37b6ee9dd236b376bcf5a, < c231cbd3d5147ee920a37b6ee9dd236b376bcf5a | from 0, < 2024.2.20
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
參考連結(8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-23346
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-23346
- PATCHhttps://github.com/materialsproject/pymatgen
- WEBhttps://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108
- WEBhttps://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a
- WEBhttps://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pymatgen/PYSEC-2024-226.yaml
- WEBhttps://www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346