---
id: "CVE-2025-6237"
kind: "vulnerability"
aliases: ["CVE-2025-6237", "GHSA-vv9c-xxg7-wmv7"]
title: "InvokeAI has External Control of File Name or Path"
severity: "critical"
cvss: 9.8
epss: 0.00386
exploited: false
status: "open"
category: "ai-tooling"
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"]
published_at: "2025-09-18T09:15:35+00:00"
first_seen_at: "2026-10-27T17:27:29+00:00"
updated_at: "2026-10-27T17:32:47+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-vv9c-xxg7-wmv7", "first_seen_at": "2026-10-27T17:27:29+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-6237", "first_seen_at": "2026-10-27T17:32:47+00:00"}]
---

# InvokeAI has External Control of File Name or Path

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:invokeai affected < 6.7.0 fixed 6.7.0

## How to check

- Run `pip show invokeai` and check whether the version is below `6.7.0`
- Check whether the bulk downloads endpoint is reachable from untrusted networks

## Fix

- Upgrade the `invokeai` PyPI package to `6.7.0` or later
- Until upgraded, restrict network access to the InvokeAI server

## Timeline

- 2026-10-27T17:27:29+00:00 ghsa https://github.com/advisories/GHSA-vv9c-xxg7-wmv7
- 2026-10-27T17:32:47+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-6237

## From the sources

### Path Traversal Vulnerability in InvokeAI

A 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.

The 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.

In 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.

The issue is fixed in **6.7.0**, which normalizes and validates input paths and rejects traversal attempts.

**Affected versions:** `< 6.7.0`
**Patched version:** `6.7.0`

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
