{"id":"UBUNTU-CVE-2024-23346","details":"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.","modified":"2025-09-08T16:59:01Z","published":"2024-02-21T17:15:00Z","upstream":["CVE-2024-23346"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-23346"},{"type":"REPORT","url":"https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f"},{"type":"REPORT","url":"https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-23346"}],"affected":[{"package":{"name":"pymatgen","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pymatgen@2022.0.17+dfsg1-1build1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2022.0.14+dfsg1-1","2022.0.16+dfsg1-1","2022.0.17+dfsg1-1","2022.0.17+dfsg1-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pymatgen","binary_version":"2022.0.17+dfsg1-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-23346.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}