{"url":"http://public2.vulnerablecode.io/api/packages/39979?format=json","purl":"pkg:pypi/pymatgen@4.6.2","type":"pypi","namespace":"","name":"pymatgen","version":"4.6.2","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"2024.2.20","latest_non_vulnerable_version":"2024.2.20","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/36729?format=json","vulnerability_id":"VCID-knqw-8jxn-rud5","summary":"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.","references":[{"reference_url":"https://github.com/materialsproject/pymatgen","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/materialsproject/pymatgen"},{"reference_url":"https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108","reference_id":"","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}],"url":"https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108"},{"reference_url":"https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a","reference_id":"","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}],"url":"https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a"},{"reference_url":"https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f","reference_id":"","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}],"url":"https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f"},{"reference_url":"https://github.com/pypa/advisory-database/tree/main/vulns/pymatgen/PYSEC-2024-226.yaml","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pymatgen/PYSEC-2024-226.yaml"},{"reference_url":"https://www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346","reference_id":"","reference_type":"","scores":[{"value":"7.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}],"url":"https://www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23346","reference_id":"CVE-2024-23346","reference_type":"","scores":[],"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23346"},{"reference_url":"https://github.com/advisories/GHSA-vgv8-5cpj-qj2f","reference_id":"GHSA-vgv8-5cpj-qj2f","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-vgv8-5cpj-qj2f"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/40174?format=json","purl":"pkg:pypi/pymatgen@2024.2.20","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/pymatgen@2024.2.20"}],"aliases":["CVE-2024-23346","GHSA-vgv8-5cpj-qj2f","PYSEC-2024-226"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-knqw-8jxn-rud5"}],"fixing_vulnerabilities":[],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/pymatgen@4.6.2"}