---
cve: "CVE-2024-23346"
severity: "CRITICAL"
cvss: 9.4
epss: "3.8%"
vendor: "materialsproject"
kev: false
exploited: false
published: "2024-02-21 16:13:25"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-10-19T21:26:27+02:00"
---

# CVE-2024-23346

> 9.4 CRITICAL · 🧪 PoC

## Beschreibung

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-Record (Kanon, cvelistV5)

- CNA: **GitHub_M**
- State: PUBLISHED
- Stand: 2024-08-19 07:47:59
- CNA-CVSS: **9.4** (`CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`)

## CISA-Anreicherung (vulnrichment/ADP)

- CISA-SSVC (Coordinator, v2.0.3):
  - Exploitation: **poc**
  - Automatable: **no**
  - Technical Impact: **total**

## CVSS-Vektor

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

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Schwachstellen-Klasse

- **CWE-77** — Improper Neutralization of Special Elements used in a Command ('Command Injection')
  The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

## Angriffsmuster (CAPEC)

- [CAPEC-15 — Command Delimiters](https://capec.mitre.org/data/definitions/15.html) _(Severity: High)_
- [CAPEC-40 — Manipulating Writeable Terminal Devices](https://capec.mitre.org/data/definitions/40.html) _(Severity: Very High)_
- [CAPEC-43 — Exploiting Multiple Input Interpretation Layers](https://capec.mitre.org/data/definitions/43.html) _(Severity: High)_
- [CAPEC-75 — Manipulating Writeable Configuration Files](https://capec.mitre.org/data/definitions/75.html) _(Severity: Very High)_
- [CAPEC-76 — Manipulating Web Input to File System Calls](https://capec.mitre.org/data/definitions/76.html) _(Severity: Very High)_
- [CAPEC-136 — LDAP Injection](https://capec.mitre.org/data/definitions/136.html) _(Severity: High)_
- [CAPEC-183 — IMAP/SMTP Command Injection](https://capec.mitre.org/data/definitions/183.html) _(Severity: Medium)_
- [CAPEC-248 — Command Injection](https://capec.mitre.org/data/definitions/248.html) _(Severity: High)_

## Exploit-Evidenz

- [EDB-52205 — Pymatgen 2024.1 - Remote Code Execution (RCE)](https://www.exploit-db.com/exploits/52205)

## Patch verfügbar (OSV)

- 013ccb54a4f39f1ed4ac3ada690428a3c609731f (Commit)
- c231cbd3d5147ee920a37b6ee9dd236b376bcf5a (Commit)

## Referenzen

- <https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f>
- <https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a>
- <https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2024-23346/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
