{"id":"CVE-2022-42964","published":"2022-11-09T00:00:00Z","modified":"2025-05-01T19:19:37Z","title":"Exponential ReDoS in pymatgen leads to denial of service","vendor":"pymatgen","product":"pymatgen","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00956,"percentile":0.62267,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/pymatgen-redos-xray-257184/","tags":[]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":12.45},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"pymatgen","affectedVersions":[{"vendor":"pymatgen","product":"pymatgen","versions":["all versions"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-01T19:19:27.030687Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymatgen","vulnerableRanges":["<=2022.9.21","<2025.10.7"],"patched":["2025.10.7"],"from":["GHSA-5jqp-885w-xj32","PYSEC-2026-909"],"provenance":"source"}],"summary":{"text":"The flaw is an exponential ReDoS (regular expression denial of service) in the pymatgen PyPI package, specifically in the GaussianInput.from_string method. An attacker who can supply arbitrary input to that method can cause a denial of service, with the attack requiring network access, no authentication, no user interaction, and a high-complexity condition that the attack vector describes.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:32Z"},"euvd":{"id":"EUVD-2022-7243","exploited":false,"provenance":"source"}}