materialsproject pymatgen prior 2024.2.20 from_transformation_str command injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.3 | $0-$5k | 0.00 |
Summary
A vulnerability described as critical has been identified in materialsproject pymatgen. Affected by this issue is the function from_transformation_str. Such manipulation leads to command injection.
This vulnerability is referenced as CVE-2024-23346. The attack can only be performed from a local environment. Furthermore, an exploit is available.
Upgrading the affected component is recommended.
Details
A vulnerability was found in materialsproject pymatgen (Project Management Software). It has been rated as critical. Affected by this issue is the function from_transformation_str. The manipulation with an unknown input leads to a command injection vulnerability. Using CWE to declare the problem leads to CWE-77. 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. Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was published 02/21/2024. The advisory is shared for download at github.com. This vulnerability is handled as CVE-2024-23346 since 01/15/2024. Technical details as well as a public exploit are known. The MITRE ATT&CK project declares the attack technique as T1202.
The exploit is available at exploit-db.com. It is declared as proof-of-concept.
Upgrading to version 2024.2.20 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Exploit-DB (52205). Once again VulDB remains the best source for vulnerability data.
Product
Type
Vendor
Name
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.5VulDB Meta Temp Score: 7.3
VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔍
CNA Base Score: 9.3
CNA Vector (GitHub, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Command injectionCWE: CWE-77 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: pymatgen 2024.2.20
Patch: github.com
Timeline
01/15/2024 🔍02/21/2024 🔍
02/21/2024 🔍
08/08/2025 🔍
Sources
Product: github.comAdvisory: c231cbd3d5147ee920a37b6ee9dd236b376bcf5a
Status: Confirmed
CVE: CVE-2024-23346 (🔍)
GCVE (CVE): GCVE-0-2024-23346
GCVE (VulDB): GCVE-100-254420
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 02/21/2024 18:16Updated: 08/08/2025 17:59
Changes: 02/21/2024 18:16 (49), 03/13/2024 09:05 (2), 03/13/2024 09:06 (1), 02/06/2025 10:12 (27), 08/08/2025 17:59 (11)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.