Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious 'notes' argument
-
DeliveryVictim runs infill.py with it
-
ExploitMetacharacters reach os.system call
-
ExecutionShell executes injected commands
-
ImpactArbitrary code runs as invoking user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques 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 a victim to execute the Diffusion-LM script improved-diffusion/scripts/infill.py with an attacker-influenced 'notes' argument that contains shell metacharacters, which is then passed directly to os.system and interpreted by the shell. Limiting factors that reduce realistic risk: user interaction is required (CVSS UI:P) - someone must run the script; the attacker must control or influence the 'notes' input (e.g., via a crafted command line, config, or supplied dataset); it is a standalone research/CLI script, not a listening network service, so the described 'remote' vector depends entirely on how the 'notes' value is fed in; and no fixed version exists because the project uses a rolling release and has not responded to the report. |
| Impact | This is a medium-severity (CVSS 4.0 base 5.3) OS command injection (CWE-78) in a research-grade machine-learning repository, and the signals point to low real-world priority despite the 'remote' framing. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L) claims a network attack vector with passive user interaction and only partial impact; however, the described mechanism is a command-line script (improved-diffusion/scripts/infill.py) passing its 'notes' argument to os.system, which is characteristic of local/operator-supplied input rather than a network-exposed service - CVSS indicates a network vector but the described code path implies the attacker must control a local script argument, so the AV:N rating should be verified. EPSS is not provided in the input, the CVE is NOT on CISA KEV (no confirmed active exploitation), and the only exploit artifact is a PoC reference (poc.zip attachment) that is not verified as working exploit code. The vuln.today decision label is 'this_month', not act_now/emergency, consistent with a non-urgent, low-exposure issue. Net: a genuine code-injection bug, but its practical risk is constrained by the niche research-tool footprint, the requirement for user interaction, and the unverified exploit - treat as a hygiene/supply-chain concern for anyone who actually runs this repo, not a fleet-wide emergency. |
| Exploit ScenarioDerived | A user runs the Diffusion-LM infill.py script with a 'notes' value that originates from an attacker (for example a crafted dataset, config, or copied command line) containing shell metacharacters; because the value is passed unsanitized to os.system, the injected commands execute in a shell as the user running the script. A public PoC reference (poc.zip) exists but is not verified as working exploit code, and CVSS passive user interaction (UI:P) means a victim must actually invoke the vulnerable script for the chain to fire. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
OS command injection in XiangLi1999 Diffusion-LM (a research-grade diffusion language-model repository) allows shell metacharacters in the 'notes' argument of improved-diffusion/scripts/infill.py to be executed through an unsanitized os.system call. Rated CVSS 4.0 base 5.3 and re-scored by our own assessment as CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, because exploitation requires a victim to run the script with an attacker-influenced 'notes' value - this is a standalone CLI/research script, not a listening network service, so the 'remote' framing depends entirely on how that value is supplied. A public PoC reference exists; it is not verified as working exploit code, there is no KEV confirmation of active exploitation, the vendor has not responded (issue #79), and the project's rolling-release model means no fixed version is published; the current decision signal places this in the this_month remediation queue rather than an emergency.
RemediationAI
No vendor-released patch or fixed version has been identified at time of analysis: the project ships as a rolling release, the report in https://github.com/XiangLi1999/Diffusion-LM/issues/79 has not been answered, and no fix commit is cited in the available references, so upgrading is not currently a viable fix. The most complete corrective action is a code-level change in improved-diffusion/scripts/infill.py: stop passing 'notes' through os.system and invoke the external program with an argument array and shell interpretation disabled (e.g., subprocess.run([...], shell=False)) or strictly validate the value against an allowlist of expected characters; the trade-off is that this is an unsupported local modification that must be re-applied on every pull of the rolling branch. As compensating controls, do not run infill.py with 'notes' values drawn from untrusted sources such as downloaded datasets, shared configs, or wrapper scripts; when untrusted input is unavoidable, execute the script inside a container or sandbox with no network access and a least-privilege account so injected commands cannot reach production data or credentials - this costs convenience and throughput but bounds the blast radius. Restricting execution of the repository's scripts to trusted operators and monitoring the upstream issue and repository for a future fix are the remaining options; users should also review the public PoC material at https://github.com/user-attachments/files/33755785/poc.zip to confirm their exposure, noting it is a reference and not verified as working exploit code.
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
The root cause is CWE-78 (OS Command Injection): the function os.system in improved-diffusion/scripts/infill.py - the command-line entry point used for text-infilling experiments in this diffusion language-model codebase - takes the 'notes' argument and hands it to the system shell without sanitization, so shell metacharacters in that value are interpreted as commands. The affected code lives in a machine-learning research repository delivered via a rolling release at commit 759889d58ef38e2eed41a8c34db8032e072826f4, so the CPE cpe:2.3:a:xiangli1999:diffusion-lm:*:*:*:*:*:*:*:* matches all snapshots rather than a discrete versioned artifact. The supplied evidence does not describe how 'notes' reaches the call in any given deployment; it is a script invoked by a user, not a daemon, so the practical channel is whatever passes the argument - typical cases would be a crafted command line, a wrapper or config file, or a supplied dataset, but those paths are not confirmed in the sources. The CVSS 4.0 vector records AV:N/AC:L/AT:N/PR:N/UI:P with E:P (proof-of-concept exploit maturity), while our independent assessment applies AV:L/UI:R and full C/I/A impact, reflecting that the shell execution is genuine but gated by user action.
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:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
The flaw is a local CLI script passing the 'notes' argument to os.system, so AV:L and UI:R; no authentication gates the script (PR:N), and shell command injection yields full code execution as the invoking user (C/I/A:H).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A weakness has been identified in XiangLi1999 Diffusion-LM up to 759889d58ef38e2eed41a8c34db8032e072826f4. This vulnerability affects the function os.system of the file improved-diffusion/scripts/infill.py. This manipulation of the argument notes causes os command injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks. This product follows a rolling release approach for continuous delivery, so version details for affected or updated releases are not provided. 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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-131014
GHSA-hfjj-2mp2-wp4v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB