Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pymatgen
  4. ›
  5. CVE-2022-42964

CVE-2022-42964: Inefficient Regular Expression Complexity

November 9, 2022 (updated July 6, 2023)

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

References

  • nvd.nist.gov/vuln/detail/CVE-2022-42964
  • research.jfrog.com/vulnerabilities/pymatgen-redos-xray-257184/

Code Behaviors & Features

Detect and mitigate CVE-2022-42964 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/pymatgen/CVE-2022-42964.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.