CVE-2024-23346

published 21 Feb 2024 · updated 19 Aug 2024

pymatgen arbitrary code execution when parsing a maliciously crafted JonesFaithfulTransformation transformation_string

10.0CriticalCVSS 9.4EPSS 4%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 4%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
materialsproject<2024.2.20

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-23346 severity on Zeptric[![CVE-2024-23346](https://zeptric.io/badge/cve/CVE-2024-23346.svg)](https://zeptric.io/cve/CVE-2024-23346)