Every CVE Search/ Get API key

CVE-2022-42964

Exponential ReDoS in pymatgen leads to denial of service

5.9 MediumFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

0.96%Up 0.1 points since Nov 10, 2022
90%50%10%1%

What each source reports

CVE List Score used 5.9

Exponential ReDoS in pymatgen leads to denial of service

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

Record
CVE-2022-42964
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
EUVDEUVD-2022-7243 5.9

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

Record
EUVD-2022-7243
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-5jqp-885w-xj32 5.9

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

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.

Record
GHSA-5jqp-885w-xj32
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
NVD 5.9

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

Record
CVE-2022-42964
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
OSV 7.5

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

Record
CVE-2022-42964
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2022-42964 7.5

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

Record
DEBIAN-CVE-2022-42964
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVGHSA-5jqp-885w-xj32 5.9

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

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.

Record
GHSA-5jqp-885w-xj32
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
OSVPYSEC-2026-909 5.9

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

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.

Record
PYSEC-2026-909
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2022-42964 5.9

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

Record
UBUNTU-CVE-2022-42964
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
pymatgen
PyPI
through 2022.9.21 None known
pymatgen
Debian:12
before 2022.11.7+dfsg1-11+deb12u2, plus listed versions
2022.11.7+dfsg1-112022.11.7+dfsg1-11+deb12u1
2022.11.7+dfsg1-11+deb12u2
pymatgen
Debian:13
before 2023.06.23+dfsg1-1
2023.06.23+dfsg1-1
pymatgen
PyPI
through 2022.9.21, plus listed versions
1.0.41.0.51.1.01.1.11.1.2
Show 45 moreShow less
1.2.01.2.11.2.21.2.31.2.41.2.81.2.91.5.01.6.01.7.01.7.21.8.01.8.21.8.31.9.02.0.02.1.02.1.22.10.02.10.12.10.22.10.32.10.42.10.52.10.62.2.02.2.12.2.22.2.32.2.42.2.62.3.02.3.12.3.22.4.02.4.12.4.22.4.32.5.02.5.12.5.22.5.32.5.42.5.52.6.1
None known
pymatgen
PyPI
before 2025.10.7, plus listed versions
1.0.41.0.51.1.01.1.11.1.2
Show 45 moreShow less
1.2.01.2.11.2.21.2.31.2.41.2.81.2.91.5.01.6.01.7.01.7.21.8.01.8.21.8.31.9.02.0.02.1.02.1.22.10.02.10.12.10.22.10.32.10.42.10.52.10.62.2.02.2.12.2.22.2.32.2.42.2.62.3.02.3.12.3.22.4.02.4.12.4.22.4.32.5.02.5.12.5.22.5.32.5.42.5.52.6.1
2025.10.7
pymatgen
Ubuntu:22.04:LTS
All versions, plus listed versions
2022.0.14+dfsg1-12022.0.16+dfsg1-12022.0.17+dfsg1-12022.0.17+dfsg1-1build1
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-42964 is a medium vulnerability (CVSS 5.9) in Materialsproject Pymatgen, published November 9, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.96%, the 61st percentile. Fixed in pymatgen 2022.11.7+dfsg1-11+deb12u2.

References

Show 5 moreShow less
This page doesn't list everything

Left out here: 649 versions. The JSON record has them.

MoveEnter Open