CVE-2026-133489: XiangLi1999 Diffusion-LM text_sample.py main path traversal
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/textsample.py. Such manipulation of the argument outdir 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.
Affected Software
Event History
Frequently Asked Questions
What does an attacker need to exploit this issue?
The attacker needs to be able to influence the out_dir argument passed to the main function in improved-diffusion/scripts/text_sample.py. Exploitation also requires user interaction, according to the provided CVSS vector.
Are fixed versions available?
No affected or updated release versions are available because the project uses a rolling-release model. The provided information states that the project was notified through an issue report but had not responded.
What should teams do if they use this script?
Do not allow untrusted users or remote inputs to control out_dir. Restrict output paths to a designated directory and validate or canonicalize the resolved path before writing files.
How can I determine whether my deployment is affected?
Review improved-diffusion/scripts/text_sample.py and determine whether its main function accepts an out_dir value that can be manipulated to escape the intended output directory. The identified affected source state includes commit 759889d58ef38e2eed41a8c34db8032e072826f4 and earlier code.