CVE-2022-42964

Exponential ReDoS in pymatgen leads to denial of service

Published Nov 9, 2022 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-7243 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
Github GHSA Github GHSA GHSA-5jqp-885w-xj32 pymatgen is vulnerable to Regular Expression Denial of Service (ReDoS)
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Materialsvirtuallab
Materialsvirtuallab pymatgen
CPEs cpe:2.3:a:pymatgen:pymatgen:-:*:*:*:*:*:*:* cpe:2.3:a:materialsvirtuallab:pymatgen:-:*:*:*:*:*:*:*
Vendors & Products Pymatgen
Pymatgen pymatgen
Materialsvirtuallab
Materialsvirtuallab pymatgen
Weaknesses

Sources

Status
PUBLISHED
Assigner
JFROG
Published
Updated
May 1, 2025, 7:19 PM
Reserved
Oct 15, 2022, 12:00 AM
Status
Modified
Published
Nov 9, 2022, 8:15 PM
Modified
Jun 17, 2026, 5:05 AM