{"id":"CVE-2025-6237","aliases":["PYSEC-2026-359"],"url":"https://o3.security/vulnerability/CVE-2025-6237","summary":"InvokeAI has External Control of File Name or Path","details":"### Path Traversal Vulnerability in InvokeAI\n\nA path traversal vulnerability in **InvokeAI** (versions < 6.7.0) allows an unauthenticated remote attacker to read files outside the intended media directory via the **bulk downloads** API.\n\nThe endpoint accepts a user-controlled file/item name and concatenates it into a filesystem path without proper canonicalization or allow-listing. By supplying sequences such as `../` (or absolute paths), an attacker can cause the server to traverse directories and return arbitrary files.\n\nIn certain storage or back-end configurations, abusing attacker-controlled paths can also lead to unintended overwriting or deletion of files referenced by the crafted path.\n\nThe issue is fixed in **6.7.0**, which normalizes and validates input paths and rejects traversal attempts.\n\n**Affected versions:** `< 6.7.0`\n**Patched version:** `6.7.0`","published":"2025-09-18T09:31:13Z","modified":"2026-06-29T12:26:15.110559520Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.00386,"percentile":0.32419,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"invokeai","fixedVersion":"6.7.0"}],"fix":{"url":"https://github.com/invoke-ai/InvokeAI/pull/8548/commits/eff565ae6ace1c8458f187245690bff0513f1b9e","label":"invoke-ai/InvokeAI#8548"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6237"},{"type":"WEB","url":"https://github.com/invoke-ai/InvokeAI/pull/8548/commits/eff565ae6ace1c8458f187245690bff0513f1b9e"},{"type":"PACKAGE","url":"https://github.com/invoke-ai/InvokeAI"},{"type":"WEB","url":"https://github.com/invoke-ai/InvokeAI/blob/v6.0.0a1/invokeai/app/api/routers/images.py#L493-L524"},{"type":"WEB","url":"https://github.com/invoke-ai/InvokeAI/releases/tag/v6.7.0"},{"type":"WEB","url":"https://huntr.com/bounties/54ac9589-7c88-4fd4-8512-8b2f19fbaedf"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-06-29T12:26:15.110559520Z"}}