CVE-2024-23346

unknown
Published 2024-02-21 ยท Modified 2026-02-05
CVSS v3
โ€”
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
1.0

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-52205 remote python
Mohammed Idrees Banyamer ยท 2025-04-15

Pymatgen 2024.1 - Remote Code Execution (RCE)

Source code queued for fetch โ€” refresh in a moment.

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed2022.11.7+dfsg1-11+deb12u1
debian debiansidfixed2024.1.27+dfsg1-6
debian debiantrixiefixed2024.1.27+dfsg1-6

Package impact

EcosystemPackageVulnerableFixed
python PyPIpymatgen<2024.2.202024.2.20
python PyPIpymatgen<c231cbd3d5147ee920a37b6ee9dd236b376bcf5a||<2024.2.20c231cbd3d5147ee920a37b6ee9dd236b376bcf5a

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.