{
  "id": "security/cpp/LostRuins__koboldcpp/2026-12-04-http-api-paths-can-end-the-process",
  "title": "Two HTTP API paths can end the process: img2img mask invert writes through a failed mask load, and audio decode resizes from an uncapped decoder-reported length",
  "category": "security",
  "type": "crash",
  "severity": "low",
  "cvss": null,
  "ecosystem": "cpp",
  "project": {
    "owner": "LostRuins",
    "repo": "koboldcpp",
    "url": "https://github.com/LostRuins/koboldcpp"
  },
  "affected_versions": [
    "koboldcpp < 1.126"
  ],
  "fixed_version": "1.126",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-c483-gxj5-6g2m",
    "cve_id": null,
    "url": "https://github.com/LostRuins/koboldcpp/security/advisories/GHSA-c483-gxj5-6g2m",
    "reported_at": null,
    "published_at": "2026-12-04T19:19:52+03:00"
  },
  "summary": "Two HTTP API paths can stop the koboldcpp process. POST /sdapi/v1/img2img with a mask and inpainting_mask_invert does not check that the mask loaded, so a mask that fails to decode can make the invert loop write through a null pointer and crash the process. An image model has to be loaded. POST /api/extra/transcribe lets the audio decoder size its buffer from the frame count in the container header, with no cap. On the built-in whisper path that allocation failure is not caught, which ends the process. A whisper model has to be loaded. Both paths are reachable with no authentication when --password is unset, which is the default. Versions before 1.126 are affected. Fixed in 1.126. Reviewed at v1.125.1. GitHub rates it low. The advisory credits ucsurf as reporter. Found by reading the source.",
  "discovered_at": "2026-12-04T19:19:52+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-04T19:19:52+03:00",
  "pr": null
}
