PT-2024-19825 · Pypi · Pymatgen

Steakenthusiast

·

Published

2024-02-21

·

Updated

2025-03-08

·

CVE-2024-23346

CVSS v3.1

9.3

Critical

VectorAV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions pymatgen versions prior to 2024.2.20
Description A critical security issue exists in the JonesFaithfulTransformation.from transformation str() method within the pymatgen library. This method insecurely utilizes eval() for processing input, enabling execution of arbitrary code when parsing untrusted input. The vulnerability can be exploited when parsing a maliciously-created CIF file.
Recommendations For pymatgen versions prior to 2024.2.20, update to version 2024.2.20 to resolve the issue. As a temporary workaround, consider avoiding the use of the JonesFaithfulTransformation.from transformation str() method until a patch is available.

Exploit

Fix

Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-23346
DSA-5763-1
GHSA-VGV8-5CPJ-QJ2F
PYSEC-2024-226

Affected Products

Pymatgen