{"id":"CVE-2024-21575","details":"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).","modified":"2026-08-12T03:51:14.392212746Z","published":"2024-12-12T14:14:29.321Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21575.json","cna_assigner":"snyk","cwe_ids":["CWE-35"]},"references":[{"type":"WEB","url":"https://github.com/ltdrdata/ComfyUI-Impact-Pack/blob/1087f2ee063c9d53cd198add79b41a7a3465c05a/modules/impact/impact_server.py#L28"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21575.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21575"},{"type":"FIX","url":"https://github.com/ltdrdata/ComfyUI-Impact-Pack/commit/a43dae373e648ae0f0cc0c9768c3cea6a72acff7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ltdrdata/comfyui-impact-pack","events":[{"introduced":"0"},{"fixed":"a43dae373e648ae0f0cc0c9768c3cea6a72acff7"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"7.6.2"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["7.5.2","7.5.1","7.5","7.4.5","7.4.4","7.4.2","7.3.2","7.3.1","7.3","7.2.1","7.1","7.0","6.0.3","6.0.2","6.0.1","6.0","5.18.16","5.18.15","5.18.14","5.18.13"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21575.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N"}]}