Advisory

GHSA-5jqp-885w-xj32

Also known as: CVE-2022-42964, PYSEC-2026-909

Summary

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

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-11-10 12:01 UTC
Modified
2026-07-07 11:56 UTC

Affected packages and fixes

pymatgen

PyPI · All systems

Affected

  • introduced 0, last affected 2022.9.21 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences