Skip to content
OpenAdvisories
Medium · 5.9 CVE-2022-42964 EUVD-2022-7243GHSA-5jqp-885w-xj32PYSEC-2026-909

Exponential ReDoS in pymatgen leads to denial of service

Published Nov 9, 2022 · Updated May 1, 2025 · Assigned by JFROG

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

Affected products

VendorProductAffectedFixed
pymatgen pymatgen — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 pymatgen 2023.06.23+dfsg1-1 —
Debian 12 pymatgen 2022.11.7+dfsg1-11+deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS pymatgen No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pymatgen <= 2022.9.21 — GHSA-5jqp-885w-xj32
PyPI pymatgen < 2025.10.7 2025.10.7 PYSEC-2026-909

References