{"id":"CVE-2025-6237","kind":"vulnerability","aliases":["CVE-2025-6237","GHSA-vv9c-xxg7-wmv7"],"related":[],"title":"InvokeAI has External Control of File Name or Path","description":"### 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`","summary":"InvokeAI versions before 6.7.0 let an unauthenticated remote attacker supply path sequences such as ../ to the bulk downloads API. The server then reads and returns files outside the media directory, and in some storage setups can also overwrite or delete files.","severity":"critical","cvss":9.8,"epss":0.00386,"exploited":false,"exploited_at":null,"products":[{"name":"invokeai","fixed":["6.7.0"],"affected":"< 6.7.0","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["ai-image-generation","ai-tooling","cwe-22","cwe-73","invokeai","python","self-hosted"],"not_affected_if":["invokeai-6.7.0-or-later","localhost-only"],"how_to_check":"- Run `pip show invokeai` and check whether the version is below `6.7.0`\n- Check whether the bulk downloads endpoint is reachable from untrusted networks","fix":"- Upgrade the `invokeai` PyPI package to `6.7.0` or later\n- Until upgraded, restrict network access to the InvokeAI server","status":"open","published_at":"2025-09-18T09:15:35+00:00","first_seen_at":"2026-10-27T17:27:29+00:00","triaged_at":"2026-10-27T17:27:57+00:00","updated_at":"2026-10-27T17:32:47+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-10-27T17:27:57Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade the `invokeai` PyPI package to `6.7.0` or later\n- Until upgraded, restrict network access to the InvokeAI server","reach":"internet","title":"InvokeAI: unauthenticated bulk download API reads arbitrary server files","impact":"high","summary":"InvokeAI versions before 6.7.0 let an unauthenticated remote attacker supply path sequences such as ../ to the bulk downloads API. The server then reads and returns files outside the media directory, and in some storage setups can also overwrite or delete files.","category":"ai-tooling","nicknames":[],"who_cares":["invokeai","self-hosted","python","ai-image-generation"],"confidence":0.8,"needs_auth":"no","worst_case":"Attacker reads arbitrary server files without logging in","analyst_note":"","how_to_check":"- Run `pip show invokeai` and check whether the version is below `6.7.0`\n- Check whether the bulk downloads endpoint is reachable from untrusted networks","needs_analyst":false,"not_affected_if":["invokeai-6.7.0-or-later","localhost-only"],"who_is_affected":"Any InvokeAI server below 6.7.0 that is reachable over a network exposes the bulk downloads endpoint, which requires no account. Deployments bound only to localhost or behind authentication at a reverse proxy are less exposed, but the sources do not say how many setups fall into that group. Teams that run InvokeAI at 6.7.0 or later can skip it.","user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"critical"},"cost_usd":0.000636,"input_tokens":3568,"output_tokens":558,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2025':11A,19A '-22':30B '-6237':12A,20A '-73':32B '6.7.0':41B,91C,187C,200C,203C 'absolut':139C 'abus':162C 'accept':112C 'affect':198C 'ai':23B,27B 'ai-image-gener':22B 'ai-tool':26B 'allow':92C,131C 'allow-list':130C 'also':74B,168C 'api':56B,109C 'arbitrari':152C 'attack':46B,96C,142C,164C 'attacker-control':163C 'attempt':197C 'back':159C 'back-end':158C 'bulk':54B,107C 'canonic':128C 'caus':144C 'certain':155C 'concaten':120C 'configur':161C 'control':4A,116C,165C 'craft':180C 'cve':10A,18A 'cwe':29B,31B 'delet':77B,174C 'directori':67B,104C,149C 'download':55B,108C 'end':160C 'endpoint':111C 'extern':3A 'file':6A,63B,78B,99C,153C,176C 'file/item':117C 'filesystem':124C 'fix':185C 'generat':25B 'ghsa':14A 'ghsa-vv9c-xxg7-wmv7':13A 'host':37B 'imag':24B 'input':192C 'intend':102C 'invokeai':1A,21A,33B,38B,83C,89C 'issu':183C 'lead':169C 'let':42B 'list':132C 'media':66B,103C 'name':7A,118C 'normal':189C 'outsid':64B,100C 'overwrit':75B,172C 'patch':201C 'path':9A,48B,79C,85C,125C,140C,166C,181C,193C 'proper':127C 'python':34B 'read':60B,98C 'referenc':177C 'reject':195C 'remot':45B,95C 'return':62B,151C 'self':36B 'self-host':35B 'sequenc':49B,135C 'server':58B,146C 'setup':72B 'storag':71B,156C 'suppli':47B,134C 'tool':28B 'travers':80C,86C,148C,196C 'unauthent':44B,94C 'unintend':171C 'user':115C 'user-control':114C 'valid':191C 'version':39B,90C,199C,202C 'via':105C 'vulner':81C,87C 'vv9c':15A 'without':126C 'wmv7':17A 'xxg7':16A","nicknames":[],"mitigations":[],"who_affected":"Any InvokeAI server below 6.7.0 that is reachable over a network exposes the bulk downloads endpoint, which requires no account. Deployments bound only to localhost or behind authentication at a reverse proxy are less exposed, but the sources do not say how many setups fall into that group. Teams that run InvokeAI at 6.7.0 or later can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2025-09-18T09:15:35+00:00","kev":null,"cvss_vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-vv9c-xxg7-wmv7","url":"https://github.com/advisories/GHSA-vv9c-xxg7-wmv7","severity":"critical","published_at":"2025-09-18T09:31:13+00:00","modified_at":"2026-10-27T17:25:45+00:00","first_seen_at":"2026-10-27T17:27:29+00:00","fetched_at":"2026-10-27T17:27:29+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-6237","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6237","severity":null,"published_at":"2025-09-18T09:15:35+00:00","modified_at":"2026-06-17T10:01:26+00:00","first_seen_at":"2026-10-27T17:32:47+00:00","fetched_at":"2026-10-27T17:32:47+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}