materialsproject/pymatgen · Security
pymatgen is vulnerable to Regular Expression Denial of Service (ReDoS)
- GHSA ID
- GHSA-5jqp-885w-xj32
- CVE ID
- CVE-2022-42964
- Severity
- medium
- Published
- Updated
- CVSS
- 5.9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 5.9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
CWEs
- CWE-1333 · Inefficient Regular Expression Complexity