Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence out_dir script argument
-
ExploitInject path traversal sequence
-
ExecutionScript writes files outside intended directory
-
ImpactArbitrary file write within user privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection 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 run improved-diffusion/scripts/text_sample.py with an out_dir argument value that the attacker can influence or control; the traversal is in that output-directory parameter. The attack is limited by required user interaction (UI:P - the script must be executed) and is bounded to the file-system privileges of the user running the script. Impact is confined to file writing (integrity, VI:L) - no confidentiality or availability impact per the vector. The input's 'remote' characterization is unverified given this is a local CLI argument; realistically it depends on a workflow that passes externally-supplied values into out_dir. No fixed version is available due to the rolling-release model. |
| Impact | This is a low-to-moderate priority issue despite being publicly disclosed. The input scores CVSS 4.0 at 5.3 (medium) with vector AV:N/AC:L/AT:N/PR:N/UI:P and only limited integrity impact (VI:L; VC/VA/subsequent all N), reflecting a path traversal via the out_dir argument that affects where output files are written rather than enabling code execution or data theft. The E:P (Proof-of-Concept) exploit maturity aligns with the input's note of a PoC reference. There is no CISA KEV listing and no EPSS score provided, so there is no signal of active or widespread exploitation; VulDB's priority label is 'this_month,' not an urgent/act-now tier. Two signals conflict and should be verified: the CVSS vector marks AV:N ('attack can be executed remotely'), but the mechanism - manipulation of the out_dir command-line argument to a text-sampling script (improved-diffusion/scripts/text_sample.py) - implies the attacker already supplies local script arguments, so network reachability is doubtful; verify the deployment context with the project. UI:P correctly captures that someone must invoke the script. Net: a real but narrow weakness in a research codebase, not a high-urgency enterprise exposure. |
| Exploit ScenarioDerived | An attacker who can influence the out_dir argument passed to text_sample.py supplies a traversal sequence (e.g. ../../) so that generated sample files are written outside the intended output directory, potentially overwriting files the invoking user can write to. A public PoC reference (poc.zip) exists but is not verified as working exploit code, and exploitation requires the victim to run the sampling script with the attacker-influenced argument (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
A path traversal flaw in XiangLi1999 Diffusion-LM's improved-diffusion/scripts/text_sample.py allows an attacker who can influence the out_dir command-line argument to write files outside the intended output directory, limited to the file-system privileges of the user running the script. Exploitation requires the victim to execute the script (UI:P), and impact is confined to integrity of written files with no confidentiality or availability effect; the vulnerability's 'remote' characterization is unverified since the vector is fundamentally a local CLI argument. A public PoC reference exists but is not verified as working exploit code, and no vendor response or fixed version has been issued for this rolling-release project.
RemediationAI
No vendor-released patch or fixed version has been identified at time of analysis; the project is on a rolling-release model, was informed via issue https://github.com/XiangLi1999/Diffusion-LM/issues/80 and has not responded. Until an upstream fix lands, validate and canonicalize the out_dir argument before passing it to text_sample.py - reject values containing '../' segments or absolute paths and resolve the path against an expected base directory, which requires wrapping or locally patching the script since no built-in sanitization exists. Restrict who can supply that argument (for example, do not expose the sampling workflow to externally controlled parameters) and run the script under an account whose write permissions are limited to the intended output tree, so a traversal cannot reach sensitive locations; this reduces the impact of a flawed path but does not fix the underlying defect. Track the VulDB advisory at https://vuldb.com/vuln/440907 and the GitHub issue for an upstream resolution.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-22 path traversal in the argument-handling path of the main function of improved-diffusion/scripts/text_sample.py, a sampling script in Diffusion-LM's improved-diffusion research codebase for diffusion language models. The out_dir parameter, which designates where generated samples are written, is not sanitized for '../' sequences or absolute paths, so a supplied value can redirect writes to arbitrary locations accessible to the invoking user. The CPE (cpe:2.3:a:xiangli1999:diffusion-lm) covers the whole project with no version granularity because the repository follows a rolling release; the specific snapshot identified is up to commit 759889d58ef38e2eed41a8c34db8032e072826f4. The assessed CVSS:3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N, score equivalent to low severity) contradicts the vendor-reported CVSS:4.0/AV:N rating: execution of the script is required, so this is effectively local with user interaction, the trigger is an externally influenced out_dir value, and the only outcome is limited file-write integrity impact. No confidentiality or availability impact is established, the trigger mechanics beyond the out_dir argument are not described in the available sources, and the practical risk depends entirely on whether a workflow feeds untrusted values into out_dir.
Know when Diffusion Lm 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
out_dir is a local command-line argument requiring script execution by a user, so AV:L and UI:R; impact is limited arbitrary file write (I:L) with no confidentiality or availability effect.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in XiangLi1999 Diffusion-LM up to 759889d58ef38e2eed41a8c34db8032e072826f4. This issue affects the function main of the file improved-diffusion/scripts/text_sample.py. Such manipulation of the argument out_dir leads to path traversal. The attack can be executed remotely. The exploit has been disclosed publicly and may be used. This product implements a rolling release for ongoing delivery, which means version information for affected or updated releases is unavailable. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-131015
GHSA-286w-9gvr-p97g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB