CVE-2022-42964 json
Exponential ReDoS in pymatgen leads to denial of service
published 2022-11-09 4 y ago modified 2026-07-08 4 mo 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
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.96% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
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
-
github.com
/materialsproject/pymatgen/pull/4476
patch
-
github.com
/materialsproject/pymatgen/commit/8d2ca2296109f9e5a4ac1c751eee650ab4303108
patch
-
research.jfrog.com
/vulnerabilities/pymatgen-redos-xray-257184/
exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-42964
advisory
-
github.com
/materialsproject/pymatgen/issues/2755
web
-
github.com
/materialsproject/pymatgen
package
-
research.jfrog.com
/vulnerabilities/pymatgen-redos-xray-257184
web
-
pypi.org
/project/pymatgen
package
-
github.com
/advisories/GHSA-5jqp-885w-xj32
advisory
Sources
- CVE List CVE-2022-42964
- GitHub Advisory GHSA-5jqp-885w-xj32
- NVD CVE-2022-42964
- OSV PYSEC-2026-909
Fencer Vulns 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.