Skip to content
Fencer Intel
medium 5.9

CVE-2022-42964 json

Exponential ReDoS in pymatgen leads to denial of service

published 4y ago modified 4mo ago also GHSA-5jqp-885w-xj32 , PYSEC-2026-909 , EUVD-2022-7243

cvss
5.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 61%
public exploits
0
none known

Summary

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

Patch / fix

  • pypi pymatgen 2025.10.7
  • pymatgen Debian 12 2022.11.7+dfsg1-11+deb12u2
  • pymatgen Debian 13 2023.06.23+dfsg1-1

debian advisories DEBIAN-CVE-2022-42964

Is CVE-2022-42964 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
last yr.

Exploit prediction

0.96% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • research.jfrog.com https://research.jfrog.com/vulnerabilities/pymatgen-redos-xray-257184/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
pypi pymatgen
<=2022.9.21
<2025.10.7
2025.10.7

Affected products

  • pymatgen pymatgen

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.