CVE-2026-65012: InvokeAI: unauthenticated directory enumeration flaw
MEDIUM PoC AVAILABLE CISA: TRACK*InvokeAI's model-scanning endpoint accepts an attacker-controlled folder path without requiring authentication, letting anyone on the network recursively probe the server's filesystem and use HTTP response codes to infer which files and directories exist and are readable, even when multi-user mode is enabled. There's no EPSS score yet since this is a fresh disclosure, it isn't in CISA KEV, and no public exploit or scanner template exists today, but the bar to exploit is trivial: it's an unauthenticated GET request with a path parameter, requiring no AI or ML expertise. The direct impact is information disclosure, not code execution, but a self-hosted InvokeAI instance is often deployed alongside credential files, SSH keys, or model artifacts on the same host, so a successful enumeration can hand an attacker a map for follow-on attacks. Upgrade to InvokeAI 6.13.7 or later immediately; until then, restrict network access to the InvokeAI API to trusted hosts/VPN only and monitor access logs for repeated scan_folder requests with anomalous or traversal-style path parameters (e.g., `../`, absolute system paths).
What is the risk?
Medium severity (CVSS 5.3) reflecting a confidentiality-only impact with no integrity or availability loss. Exploitability is high in principle — network-reachable, no privileges or user interaction, low complexity — but the practical damage is limited to filesystem existence/readability disclosure rather than direct data exfiltration or execution. Real-world risk depends heavily on exposure: instances bound to 0.0.0.0 or exposed via reverse proxy without network controls are meaningfully at risk of reconnaissance that feeds a larger attack chain; instances kept on isolated internal networks see minimal practical risk.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| InvokeAI | pip | — | No patch |
Do you use InvokeAI? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) Upgrade to InvokeAI 6.13.7 or later, which fixes the authentication gap on the scan_folder endpoint (see the linked commit and release notes). 2) Until patched, do not expose the InvokeAI API directly to the internet — place it behind a VPN, firewall allowlist, or reverse-proxy authentication layer. 3) Audit deployment configuration to confirm multi-user mode is not being relied upon as the sole control for this endpoint. 4) Review access logs for GET requests to /api/v2/models/scan_folder with unusual scan_path values (system paths, traversal sequences, or high-frequency sequential probing) as an indicator of prior exploitation attempts.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-65012?
InvokeAI's model-scanning endpoint accepts an attacker-controlled folder path without requiring authentication, letting anyone on the network recursively probe the server's filesystem and use HTTP response codes to infer which files and directories exist and are readable, even when multi-user mode is enabled. There's no EPSS score yet since this is a fresh disclosure, it isn't in CISA KEV, and no public exploit or scanner template exists today, but the bar to exploit is trivial: it's an unauthenticated GET request with a path parameter, requiring no AI or ML expertise. The direct impact is information disclosure, not code execution, but a self-hosted InvokeAI instance is often deployed alongside credential files, SSH keys, or model artifacts on the same host, so a successful enumeration can hand an attacker a map for follow-on attacks. Upgrade to InvokeAI 6.13.7 or later immediately; until then, restrict network access to the InvokeAI API to trusted hosts/VPN only and monitor access logs for repeated scan_folder requests with anomalous or traversal-style path parameters (e.g., `../`, absolute system paths).
Is CVE-2026-65012 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2026-65012, increasing the risk of exploitation.
How to fix CVE-2026-65012?
1) Upgrade to InvokeAI 6.13.7 or later, which fixes the authentication gap on the scan_folder endpoint (see the linked commit and release notes). 2) Until patched, do not expose the InvokeAI API directly to the internet — place it behind a VPN, firewall allowlist, or reverse-proxy authentication layer. 3) Audit deployment configuration to confirm multi-user mode is not being relied upon as the sole control for this endpoint. 4) Review access logs for GET requests to /api/v2/models/scan_folder with unusual scan_path values (system paths, traversal sequences, or high-frequency sequential probing) as an indicator of prior exploitation attempts.
What systems are affected by CVE-2026-65012?
This vulnerability affects the following AI/ML architecture patterns: model serving, self-hosted generative AI UIs, on-prem ML deployments.
What is the CVSS score for CVE-2026-65012?
CVE-2026-65012 has a CVSS v3.1 base score of 5.3 (MEDIUM). The EPSS exploitation probability is 0.44%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0007 Discover AI Artifacts AML.T0037 Data from Local System AML.T0049 Exploit Public-Facing Application Compliance Controls Affected
What are the technical details?
Original Advisory
InvokeAI before 6.13.7 contains an unauthenticated directory enumeration vulnerability in the GET /api/v2/models/scan_folder endpoint that accepts attacker-controlled scan_path parameters. Unauthenticated attackers can recursively enumerate arbitrary server filesystem directories and use HTTP response codes to determine file existence and readability, bypassing multi-user mode access controls.
Exploitation Scenario
An attacker discovers an internet-facing InvokeAI instance (e.g., via Shodan/Censys fingerprinting of the InvokeAI UI or API banner). Without authenticating, they send repeated GET requests to /api/v2/models/scan_folder, varying the scan_path parameter across common system directories (/etc, /home, /root, application config directories). By observing which requests return successful scan results versus errors, the attacker builds a map of the server's directory structure and identifies readable files and folders, including potential configuration files, credential stores, or model storage locations. This reconnaissance data is then used to plan a targeted follow-on attack, such as locating a misconfigured secrets file or another vulnerable service co-located on the host.
Weaknesses (CWE)
CWE-306 Missing Authentication for Critical Function
Primary
CWE-306 Missing Authentication for Critical Function CWE-306 — Missing Authentication for Critical Function: The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
- [Architecture and Design] Divide the software into anonymous, normal, privileged, and administrative areas. Identify which of these areas require a proven user identity, and use a centralized authentication capability. Identify all potential communication channels, or other means of interaction with the software, to ensure that all channels are appropriately protected, including those channels that are assumed to be accessible only by authorized parties. Developers sometimes perform authentication at the primary channel, but open up a secondary channel that is assumed to be private. For example, a login mechanism may be listening on one network port, but after successful authentication, it may open up a second port where it waits for the connection, but avoids authentication because it assumes that only the authenticated party will connect to the port. In general, if the software or protocol allows a single session or user state to persist across multiple connections or channels, authentication and appropriate
- [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N References
Timeline
Related Vulnerabilities
CVE-2024-12029 9.8 InvokeAI: RCE via unsafe torch.load deserialization
Same package: invokeai CVE-2023-3765 10.0 MLflow: path traversal allows arbitrary file read
Same attack type: Data Leakage CVE-2025-2828 10.0 LangChain RequestsToolkit: SSRF exposes cloud metadata
Same attack type: Auth Bypass CVE-2025-53767 10.0 Azure OpenAI: SSRF EoP, no auth required (CVSS 10)
Same attack type: Auth Bypass CVE-2025-5120 10.0 smolagents: sandbox escape enables unauthenticated RCE
Same attack type: Data Leakage