Exploit database

Vulnerability

CVE-2024-23346

pymatgen arbitrary code execution when parsing a maliciously crafted JonesFaithfulTransformation transformation_string

Vulnerability details

Score
9.4
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

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

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.

CVE Program

Exploit source choices

3 sources
davidaroca27/cve-2024-23346-exploit
GH-f1a606d267ab5511f03db9e10671335cGitHubUnofficial GitHub source

This is a exploit for the known Remote Code Execution (RCE) vulnerability in the `pymatgen` (CVE-2024-23346) Python library by uploading a malicious `CIF` file to the hosted `CIF Analyzer` website on the target running on the Chemistry machine from Hack the Box.

2025-07-242 files · 4 stars
sanity-archive/cve-2024-23346
GH-9214bc8d84f3cf6fdbdbb35514801426GitHubUnofficial GitHub source

PoC of the vulnerability CVE-2024-23346

2025-02-202 files · 2 stars