{
  "id": "CVE-2026-59707",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-59707",
  "published_at": "2026-07-07T20:37:53.194Z",
  "title": "LocalAI - Server-Side Request Forgery via POST /models/apply",
  "vendor": "LocalAI",
  "product": "LocalAI",
  "cvss": {
    "score": 9.2,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-20T08:50:45Z",
    "first_seen_at": null,
    "days_after_publication": 104.5,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59707.yaml"
  },
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "LocalAI contains an unauthenticated server-side request forgery vulnerability in the POST /models/apply endpoint that allows attackers to fetch arbitrary internal URLs. The endpoint 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 with partial response content leaked through error messages.",
  "cwe": "CWE-918",
  "cvss_by_source": {
    "cna": 9.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "LocalAI",
        "product": "LocalAI",
        "ranges": [
          "\u003c= v4.3.1"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "github.com/mudler/LocalAI",
        "ranges": [
          "\u003c 1.40.1-0.20260703213242-2cbb3c96b34d"
        ],
        "fixed_in": [
          "1.40.1-0.20260703213242-2cbb3c96b34d"
        ],
        "ecosystem": "Go",
        "advisory": "GHSA-8c5q-hx4g-qq23"
      }
    ],
    "upgrade": [
      "Upgrade github.com/mudler/LocalAI to 1.40.1-0.20260703213242-2cbb3c96b34d or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59707.yaml",
      "source": "nuclei",
      "title": "nuclei template: LocalAI \u003c 4.6.0 - Server-Side Request Forgery",
      "published_at": "2026-10-20T08:50:45Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
