Live threats

All CVEs / Materialsvirtuallab

CVE-2024-23346Materialsvirtuallab Pymatgen

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
4.9%
probability of exploitation in 30 days · percentile 93
Auth required
Yes
Published
Feb 21, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pymatgen.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pymatgen < 2024.2.20 2024.2.20 pip install "pymatgen>=2024.2.20"
PyPI pymatgen < 2024.2.20 2024.2.20 pip install "pymatgen>=2024.2.20"

Per OSV / GitHub Advisories (GHSA-vgv8-5cpj-qj2f, PYSEC-2024-226). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
materialsvirtuallabpymatgen< 2024.2.20

Official sources

References

Links published by the sources. Open them with care.