ADVISORIES

GitHub Advisory Database

GHSA-5jqp-885w-xj32

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

Moderate No fix available CVE-2022-42964PYSEC-2026-909

Details

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.

Affected packages

EcosystemPackageAffected versions
PyPIpymatgen
All versions up to and including 2022.9.21

References