Skip to content

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

Moderate severity GitHub Reviewed Published Nov 10, 2022 to the GitHub Advisory Database • Updated Aug 31, 2023

Package

pip pymatgen (pip)

Affected versions

<= 2022.9.21

Patched versions

None

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.

References

Published by the National Vulnerability Database Nov 9, 2022
Published to the GitHub Advisory Database Nov 10, 2022
Reviewed Nov 10, 2022
Last updated Aug 31, 2023

Severity

Moderate
5.9
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2022-42964

GHSA ID

GHSA-5jqp-885w-xj32
Checking history
See something to contribute? Suggest improvements for this vulnerability.