Skip to main content

diffpy.structure EUVDEUVD-2026-131539

| CVE-2026-133708 HIGH
Eval Injection (CWE-95)
2026-11-20 VulnCheck GHSA-3vfj-3hfg-rm35
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious CIF with payload in symop
  2. Delivery
    Deliver file to victim or pipeline
  3. Exploit
    Victim parses file via diffpy.structure
  4. Execution
    eval() in get_symop executes expression
  5. Impact
    Arbitrary Python runs with victim privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to locally parse an attacker-crafted CIF file with diffpy.structure before 3.5.1; the malicious payload must be placed in the translation portion of a symmetry operation inside the _space_group_symop_operation_xyz or _symmetry_equiv_pos_as_xyz loop, which get_symop() passes to eval(). No authentication or special product configuration is needed (PR:N, AC:L), and CIF parsing is the library's core default behavior, so no non-default mode is required. The limiting factor is the AV:L/UI:P requirement: the attacker cannot reach the code remotely and must induce the victim (or an automated pipeline) to open/parse the malicious file; code runs only with the parsing user's privileges, and upgrading to 3.5.1 fully removes the eval() sink.

Impact

This is a genuine code-execution flaw (CWE-95) but its real-world priority is moderate, not critical, because the attack vector is local and user-mediated, not remote. The input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) tells a consistent story: an attacker does not need privileges (PR:N) and complexity is low (AC:L), but exploitation requires the victim to locally parse an attacker-supplied CIF file (AV:L, UI:P) - so this is a 'malicious data file' vulnerability, comparable to opening a booby-trapped document, not an internet-facing service bug. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with that assessment. No EPSS score, no CISA KEV listing, and no vendor-confirmed in-the-wild exploitation were provided, so there is no evidence of active exploitation; the fix commit's regression test does contain a concrete injection string demonstrating the technique, so the mechanics are public even if a packaged weaponized exploit is not confirmed. The description and the source-code diff agree with the CVSS local vector (eval() on the translation part of a symmetry operation during local CIF parsing), so there is no signal conflict to flag. Net: treat as a prompt-but-not-firefight patch priority, weighted by how much a given environment ingests untrusted CIF files.

Exploit ScenarioDerived

An attacker crafts a CIF crystallography file whose _space_group_symop_operation_xyz (or _symmetry_equiv_pos_as_xyz) loop embeds a Python expression in the translation part of a symmetry operation, then sends it to a researcher or uploads it to a processing pipeline. When the victim parses the file with diffpy.structure, get_symop() passes that term to eval(), executing the attacker's Python code with the victim's privileges. A public proof-of-concept reference exists - the fix commit's regression test demonstrates an injection payload (__import__('builtins')...) - though it is not verified as a packaged working exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Local code execution in diffpy.structure before 3.5.1 allows an attacker to run arbitrary Python with the parsing user's privileges by placing expressions in the translation portion of CIF symmetry operations, which get_symop() passes to eval(). Exploitation requires the victim to open or process a crafted CIF file locally (AV:L, UI:R/UI:P), needs no authentication, and is not remotely reachable; the assessed priority is therefore moderate despite the high base score. The vendor fixed the eval() sink in 3.5.1, and no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: 3.5.1 replaces the eval() call in get_symop() with numeric parsing and fully removes the code-execution sink; the fix commit is https://github.com/diffpy/diffpy.structure/commit/f4be1d534fa9cf488c8e83f258e59fe09b526f62 and the release is https://github.com/diffpy/diffpy.structure/releases/tag/3.5.1. If upgrading cannot be done immediately, exposure is limited to cases where a crafted CIF is parsed locally, so restrict diffpy.structure parsing to trusted CIF inputs and avoid processing untrusted symmetry-operation loops; this reduces the attack surface but does not remove the underlying eval() behavior in pre-3.5.1 versions. The VulnCheck advisory is https://www.vulncheck.com/advisories/diffpy-structure-before-3.5.1-code-execution-via-eval-in-get-symop-cif-parsing.

Affected VersionsENISA

diffpy.structure 0 <3.5.1

Affected Packages

euvd diffpy_structure fix: 3.5.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

diffpy.structure is a Python library for reading and writing crystal structure files; its CIF parser in src/diffpy/structure/parsers/p_cif.py builds symmetry operations from CIF loops such as _space_group_symop_operation_xyz and _symmetry_equiv_pos_as_xyz. Before 3.5.1, get_symop() split a symmetry formula like 'x,1/2-y,1/2+z' and passed the translation component to eval('1.0*%s+0' % tpart), so a crafted translation could contain arbitrary Python and execute when the CIF was parsed. The root cause is CWE-95 (eval injection / improper neutralization of directives in dynamically evaluated code), not a memory-safety bug. The patch commit f4be1d534fa9cf488c8e83f258e59fe09b526f62 replaces eval with a regex-based numeric parser that accepts only signed integers, decimals, fractions, and sums, raising StructureFormatError for anything else. The CPE cpe:2.3:a:diffpy:diffpy.structure:*:*:*:*:*:*:*:* identifies the affected pre-3.5.1 package range, and the assessed vector is local with user interaction and no privileges required (AV:L/UI:R in CVSS 3.1; AV:L/UI:P/PR:N in CVSS 4.0).

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

Local because exploitation requires parsing an attacker-supplied CIF file (AV:L/UI:R) with no privileges (PR:N); eval() yields full arbitrary code execution, so C/I/A all High.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-133708 affects diffpy.structure versions prior to 3.5.1, enabling local arbitrary code execution when a user opens a specially crafted CIF file. This puts research and engineering teams who handle external crystal structure files at risk of running malicious code with their own privileges, potentially leading to data exposure or system compromise. Leadership should care because scientific workflows often involve untrusted files, and exploitation requires only user interaction, not elevated access.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche Python crystallography/diffraction library for scientific users
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy