Inefficient Regular Expression Complexity Affecting pymatgen package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.96% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-PYMATGEN-3112325
  • published18 Jul 2024
  • disclosed9 Nov 2022

Introduced: 9 Nov 2022

CVE-2022-42964  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:22.04 pymatgen.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pymatgen package and not the pymatgen package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1