pymatgen
Affected
- introduced
0, fixed2025.10.7(ecosystem)
Fixed versions
2025.10.7
Fix
- Fixed version
2025.10.7pip install --upgrade pymatgen==2025.10.7
Advisory
Also known as: CVE-2022-42964, GHSA-5jqp-885w-xj32
pymatgen is vulnerable to Regular Expression Denial of Service (ReDoS)
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.
Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
0, fixed 2025.10.7 (ecosystem)2025.10.7
2025.10.7pip install --upgrade pymatgen==2025.10.7Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0