Description
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.
Published: 2026-07-22
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

InvokeAI versions older than 6.13.7 expose a GET endpoint at /api/v2/models/scan_folder that accepts a user‑supplied scan_path parameter. Because no authentication is required, an external actor can supply arbitrary paths and the endpoint will recursively traverse the server filesystem. The HTTP status codes returned reveal whether a file or directory exists and whether it can be read, allowing an attacker to map sensitive data locations. This flaw, a credential‑related weakness (CWE‑306), permits unilateral information disclosure and undermines the confidentiality guarantees of the multi‑user mode.

Affected Systems

The affected product is invoke‑ai:InvokeAI. The release notes for v6.13.7 contain the fix, therefore any deployment running 6.13.6 or earlier is considered vulnerable. The input does not list a precise fixed‑version range, but it is inferred from the version hierarchy that all pre‑6.13.7 builds lack the restriction.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity. The EPSS score of <1% suggests a low probability of exploitation reported in the public data set, yet the vulnerability requires only unauthenticated HTTP GET requests and no special privileges, making the attack path straightforward for any actor who can reach the endpoint. It is not listed in the CISA KEV catalog, but the lack of authentication means it can facilitate further reconnaissance or privilege escalation, especially in multi‑user deployments.

Generated by OpenCVE AI on August 3, 2026 at 23:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade InvokeAI to version 6.13.7 or newer
  • Restrict network access to the /api/v2/models/scan_folder endpoint using firewall or ACLs to limit exposure to trusted hosts
  • Enable authentication for all API endpoints and activate multi‑user mode with proper role‑based access controls to enforce correct permissions
  • If immediate upgrade is not possible, place the /api/v2/models/scan_folder endpoint behind basic authentication or a web‑application firewall that blocks unauthenticated access

Generated by OpenCVE AI on August 3, 2026 at 23:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Invoke-ai
Invoke-ai invokeai
Vendors & Products Invoke-ai
Invoke-ai invokeai

Wed, 22 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Description 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.
Title InvokeAI < 6.13.7 Unauthenticated Directory Enumeration via scan_folder
Weaknesses CWE-306
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Invoke-ai Invokeai
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-24T21:35:12.778Z

Reserved: 2026-07-21T11:32:54.897Z

Link: CVE-2026-65012

cve-icon Vulnrichment

Updated: 2026-07-23T15:55:02.719Z

cve-icon NVD

Status : Deferred

Published: 2026-07-22T17:16:58.990

Modified: 2026-07-23T16:17:50.107

Link: CVE-2026-65012

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T23:30:17Z

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function