CVE-2024-21575 Path traversal in ComfyUI-Impact-Pack
Attackers can write arbitrary files via path traversal in the upload endpoint, potentially leading to remote code execution in ComfyUI-Impact-Pack.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-21575?
CVE-2024-21575 is a critical path traversal vulnerability in ltdrdata ComfyUI-Impact-Pack, published on 12 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
ComfyUI-Impact-Pack is vulnerable to Path Traversal. The issue stems from missing validation of the `image.filename` field in a POST request sent to the `/upload/temp` endpoint added by the extension to the server. This results in writing arbitrary files to the file system which may, under some conditions, result in remote code execution (RCE).
Weakness: CWE-35
Which versions are affected by CVE-2024-21575?
How do I fix CVE-2024-21575?
No fix has been published for CVE-2024-21575 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-21575 being exploited?
There is no known exploitation of CVE-2024-21575 in the wild and no public exploit code.
Sources
Also known as GHSA-6mx8-m8xp-f2vc.