All reports
Medium

pymatgen is vulnerable to Regular Expression Denial of Service (ReDoS)

Affected versions

Version ranges need review.

Affected versions
<= 2022.9.21
Fixed version
Not reported
Affected versions
Unknown
Fixed version
2025.10.7

Exploitation

CVE-2022-42964

Probability of exploitation in the next 30 days: 0.96%

FIRST EPSS · 2026-11-23

Description

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.

Links