CVE-2024-23346
Pymatgen Remote Code Execution
Description
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.
INFO
Published Date :
Feb. 21, 2024, 5:15 p.m.
Last Modified :
Feb. 5, 2025, 10:10 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
6.0
Exploitability Score :
2.5
Public PoC/Exploit Available at Github
CVE-2024-23346 has a 8 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2024-23346
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-23346
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Walkthrough of HackTheBox Retired Box called Chemistry
A Rust exploit for CVE-2024-23346 that functions as a "terminal" (tested on chemistry.htb)
Rust
PoC of the vulnerability CVE-2024-23346
Python
This is an exploit for CVE-2024-23346 that acts as a "terminal" (tested on chemistry.htb)
Python
This repository contains a Crystallographic Information File (CIF) intended for use on the "Chemistry" machine on Hack The Box (HTB).
None
None
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-23346
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-23346
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Feb. 05, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE NIST CWE-77 Added CPE Configuration OR *cpe:2.3:a:materialsvirtuallab:pymatgen:*:*:*:*:*:*:*:* versions up to (excluding) 2024.2.20 Changed Reference Type https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108 No Types Assigned https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108 Broken Link Changed Reference Type https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108 No Types Assigned https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108 Broken Link Changed Reference Type https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a No Types Assigned https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a Patch Changed Reference Type https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a No Types Assigned https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a Patch Changed Reference Type https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f No Types Assigned https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f Exploit, Vendor Advisory Changed Reference Type https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f No Types Assigned https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f Exploit, Vendor Advisory Changed Reference Type https://www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346 No Types Assigned https://www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346 Exploit, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108 Added Reference https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a Added Reference https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f Added Reference https://www.vicarius.io/vsociety/posts/critical-security-flaw-in-pymatgen-library-cve-2024-23346 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Feb. 21, 2024
Action Type Old Value New Value Added Description 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. Added Reference GitHub, Inc. https://github.com/materialsproject/pymatgen/security/advisories/GHSA-vgv8-5cpj-qj2f [No types assigned] Added Reference GitHub, Inc. https://github.com/materialsproject/pymatgen/commit/c231cbd3d5147ee920a37b6ee9dd236b376bcf5a [No types assigned] Added Reference GitHub, Inc. https://github.com/materialsproject/pymatgen/blob/master/pymatgen/symmetry/settings.py#L97C1-L111C108 [No types assigned] Added CWE GitHub, Inc. CWE-77 Added CVSS V3.1 GitHub, Inc. AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-23346
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-23346
weaknesses.