Live threats

All CVEs / Materialsvirtuallab

CVE-2022-42964Materialsvirtuallab Pymatgen

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.9%
probability of exploitation in 30 days · percentile 57
Auth required
No
Published
Nov 9, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the pymatgen PyPI package, when an attacker is able to supply arbitrary input to the GaussianInput.from_string method

Original NVD text.

What to do

  1. Apply the vendor's security update for Pymatgen.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pymatgen ≤ 2022.9.21 no fixed version —
PyPI pymatgen < 2025.10.7 2025.10.7 pip install "pymatgen>=2025.10.7"

Per OSV / GitHub Advisories (GHSA-5jqp-885w-xj32, PYSEC-2026-909). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
materialsvirtuallabpymatgenall

Official sources

References

Links published by the sources. Open them with care.