All vulnerabilities

PyPI

CVE-2026-133708

diffpy.structure before 3.5.1 Code Execution via eval in get_symop CIF Parsing

Severity
High 8.5
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.5.1
Exploit chance
0.3% in the next 30 daysHigher than 19% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Eval injection (CWE-95)
Attack
Needs local access · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
CVE Program

Description

diffpy.structure before 3.5.1 contains a code execution vulnerability that allows attackers to run Python code by supplying crafted CIF symmetry operations passed to eval() in get_symop(). Attackers can embed expressions in the _space_group_symop_operation_xyz or _symmetry_equiv_pos_as_xyz loop to execute code with victim privileges when the CIF file is parsed locally.

From the CVE Program.

Affected software

SoftwareAffected versions
diffpy.structurePyPI · osv:PyPI:diffpy.structure
  • Every version before 3.5.1

About diffpy.structure

Weekly downloads (PyPI)
21,333PyPI Stats, 24 Nov 2026

This is the only vulnerability in diffpy.structure in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-133708