PatchSiren cyber security CVE debrief
CVE-2026-59707 LocalAI CVE debrief
LocalAI contains an unauthenticated server-side request forgery vulnerability in the POST /models/apply endpoint that allows attackers to fetch arbitrary internal URLs. This critical vulnerability enables attackers to force the server to issue HTTP GET requests to private and loopback ranges, potentially leading to unauthorized access and data leakage through error messages. Defenders responsible for LocalAI deployments should assess potential exposure and implement compensating controls, particularly for versions prior to 1.40.1-0.20260703213242-2cbb3c96b34d.
- Vendor
- LocalAI
- Product
- github.com/mudler/LocalAI
- CVSS
- CRITICAL 9.2
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-07
- Original CVE updated
- 2026-10-07
- Advisory published
- 2026-07-07
- Advisory updated
- 2026-10-07
Who should care
Defenders responsible for LocalAI deployments, particularly those using versions prior to 1.40.1-0.20260703213242-2cbb3c96b34d, should assess potential exposure and implement compensating controls.
Why it matters
CVE-2026-59707 is a critical vulnerability in LocalAI that allows unauthenticated server-side request forgery, potentially leading to unauthorized access and data leakage. Defenders should prioritize verifying exposure and assessing potential impact.
- Potential unauthorized access to internal resources
- Possible data leakage through error messages
- Risk of lateral movement within the network
- Need for verification of LocalAI version and exposure
Technical summary
The POST /models/apply endpoint in LocalAI passes unsanitized gallery URL fields directly to gallery.GetGalleryConfigFromURLWithContext without proper validation, enabling attackers to force the server to issue HTTP GET requests to private and loopback ranges. This critical vulnerability allows attackers to fetch arbitrary internal URLs, potentially leading to unauthorized access and data leakage through error messages. The vulnerability is particularly severe for LocalAI deployments using versions prior to 1.40.1-0.20260703213242-2cbb3c96b34d.
Defensive priority
Defenders should prioritize verifying exposure and assessing potential impact, focusing on systems using LocalAI versions prior to 1.40.1-0.20260703213242-2cbb3c96b34d.
Recommended defensive actions
- Verify LocalAI version and assess exposure
- Implement compensating controls to restrict access to the POST /models/apply endpoint
- Monitor for suspicious activity and error messages indicating potential exploitation
- Review and update LocalAI deployments to ensure they are using a version that addresses the vulnerability
- Conduct thorough vulnerability assessments to identify potential entry points
- Implement additional security measures such as network segmentation and access controls
- Track and analyze error messages for signs of exploitation
Evidence notes
The vulnerability allows attackers to force the server to issue HTTP GET requests to private and loopback ranges with partial response content leaked through error messages. This occurs because the POST /models/apply endpoint passes unsanitized gallery URL fields directly to gallery.GetGalleryConfigFromURLWithContext without proper validation. As a result, attackers can exploit this vulnerability to fetch arbitrary internal URLs, potentially leading to unauthorized access and data leakage. Defenders should verify exposure and assess
Sources and references
Verified primary and authoritative sources
-
CVE-2026-59707 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-59707
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-59707 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-59707
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery U
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/Go/GHSA-8c5q-hx4g-qq23.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/mudler/LocalAI/issues/10665
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mudler/LocalAI
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.