CVE-2024-23346: Vulnerability in Materialsvirtuallab Pymatgen

Critical. A critical security vulnerability 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. This can be exploited when parsing a maliciously-created CIF file.

PyPI, CWE-77

Exploitation
None confirmed
Severity
9.3 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-vgv8-5cpj-qj2f
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-77
Published
21 Feb 2024
Last change
17 Jun 2026
Ecosystem
PyPI

Affected products

Affected versions and the first fixed release

  • Materialsvirtuallab Pymatgen Before 2024.2.20. Fixed in 2024.2.20

Affected packages

Vulnerable version ranges and fixed releases

  • pymatgen PyPI, Affected before 2024.2.20. Fixed in 2024.2.20

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related