Entreprise d'experts en Sécurité Informatique : Audits et conseils en cybersécurité
Entreprise française de cybersécurité depuis 2004
☎ 03 60 47 09 81 - info@securiteinfo.com


CVE-2024-23346

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.

POC

Reference

- https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f

- https://www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346

Github

- https://github.com/9carlo6/CVE-2024-23346

- https://github.com/ARPSyndicate/cve-scores

- https://github.com/DAVIDAROCA27/CVE-2024-23346-exploit

- https://github.com/MAWK0235/CVE-2024-23346

- https://github.com/Sanity-Archive/CVE-2024-23346

- https://github.com/anneelv/htb-chemistry

- https://github.com/igorbf495/writeup-chemistry-htb

- https://github.com/nomi-sec/PoC-in-GitHub

- https://github.com/plzheheplztrying/cve_monitor

- https://github.com/szyth/CVE-2024-23346-rust-exploit

- https://github.com/yembors64632/cve_monitor_Public

- https://github.com/yp-ww/HTB-CheatSheet