Lucene search

K
vulnrichmentGitHub_MVULNRICHMENT:CVE-2024-23346
HistoryFeb 21, 2024 - 4:13 p.m.

CVE-2024-23346 pymatgen arbitrary code execution when parsing a maliciously crafted JonesFaithfulTransformation transformation_string

2024-02-2116:13:25
CWE-77
GitHub_M
github.com
2
pymatgen
python materials genomics
security vulnerability
transformation parsing
arbitrary code execution
jonesfaithfultransformation
untrusted input
version 2024.2.20

CVSS3

9.3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

7.4

Confidence

Low

SSVC

Exploitation

poc

Automatable

no

Technical Impact

total

Pymatgen (Python Materials Genomics) is an open-source Python library for materials analysis. A critical security vulnerability exists in the JonesFaithfulTransformation.from_transformation_str() method within the pymatgen library prior to version 2024.2.20. This method insecurely utilizes eval() for processing input, enabling execution of arbitrary code when parsing untrusted input. Version 2024.2.20 fixes this issue.

CNA Affected

[
  {
    "vendor": "materialsproject",
    "product": "pymatgen",
    "versions": [
      {
        "status": "affected",
        "version": "< 2024.2.20"
      }
    ]
  }
]

ADP Affected

[
  {
    "cpes": [
      "cpe:2.3:a:pymatgen:pymatgen:*:*:*:*:*:*:*:*"
    ],
    "vendor": "pymatgen",
    "product": "pymatgen",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "2024.2.20",
        "versionType": "custom"
      }
    ],
    "defaultStatus": "unknown"
  }
]

CVSS3

9.3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

7.4

Confidence

Low

SSVC

Exploitation

poc

Automatable

no

Technical Impact

total