pymatgen — security advisory
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.
- Products
- pymatgen
- Affected versions
- 2022.11.7+dfsg1-11
- Fixed versions
- 2022.11.7+dfsg1-11+deb12u1, 2024.1.27+dfsg1-6
- CVEs
- CVE-2024-23346
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 18:47 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2024-23346
pymatgen
Fixed versions: 2022.11.7+dfsg1-11+deb12u1
pymatgen
Fixed versions: 2024.1.27+dfsg1-6
Complete source record
{
"id": "3c40888224bffd8b88a971a492df592629965198d55f5daf5a940719650df544",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2024-23346",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2024-23346",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2024-23346",
"products": [
{
"name": {
"value": "pymatgen",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2022.11.7+dfsg1-11+deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "2022.11.7+dfsg1-11",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "pymatgen",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2024.1.27+dfsg1-6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2024-23346",
"aliases": [
"DEBIAN-CVE-2024-23346"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2022.11.7+dfsg1-11+deb12u1"
}
]
}
],
"package": {
"name": "pymatgen",
"purl": "pkg:deb/debian/pymatgen?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"2022.11.7+dfsg1-11"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-23346.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2024.1.27+dfsg1-6"
}
]
}
],
"package": {
"name": "pymatgen",
"purl": "pkg:deb/debian/pymatgen?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-23346.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-27T17:00:05.500192289Z",
"provider": "osv",
"upstream": [
"CVE-2024-23346"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2024-23346"
]
},
"related_cves": [
{
"value": "CVE-2024-23346",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 462892,
"published_at": "2024-02-21T17:15:09.377+00:00"
}