cve/2024/CVE-2024-23346.md

19 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2024-23346](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23346)
![](https://img.shields.io/static/v1?label=Product&message=pymatgen&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%202024.2.20%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-77%3A%20Improper%20Neutralization%20of%20Special%20Elements%20used%20in%20a%20Command%20('Command%20Injection')&color=brighgreen)
### 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
2024-06-09 00:33:16 +00:00
- https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f
2024-05-25 21:48:12 +02:00
#### Github
No PoCs found on GitHub currently.