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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | pymatgen | 2023.06.23+dfsg1-1 | — |
| Debian 12 | pymatgen | 2022.11.7+dfsg1-11+deb12u2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | pymatgen | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pymatgen | <= 2022.9.21 | — | GHSA-5jqp-885w-xj32 |
| PyPI | pymatgen | < 2025.10.7 | 2025.10.7 | PYSEC-2026-909 |