{
  "id": "security/go/bluenviron__gortsplib/2026-10-08-tunnel-detection-unbounded-read",
  "title": "Unauthenticated RTSP-over-HTTP/WebSocket tunnel detection has no read deadline or size limit, allowing memory exhaustion and connections held open indefinitely",
  "category": "security",
  "type": "dos",
  "severity": "medium",
  "cvss": null,
  "ecosystem": "go",
  "project": {
    "owner": "bluenviron",
    "repo": "gortsplib",
    "url": "https://github.com/bluenviron/gortsplib"
  },
  "affected_versions": [
    "github.com/bluenviron/gortsplib/v5 >= 5.0.0, < 5.7.0"
  ],
  "fixed_version": "5.7.0",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-vq7q-jf68-hhhp",
    "cve_id": null,
    "url": "https://github.com/bluenviron/gortsplib/security/advisories/GHSA-vq7q-jf68-hhhp",
    "reported_at": "2026-10-08T00:00:00+03:00",
    "published_at": "2026-12-02T02:56:14+03:00"
  },
  "summary": "Tunnel detection on a new TCP connection ran before any read deadline, and the HTTP request was parsed with http.ReadRequest(), which does not limit the request line or headers (CWE-400, CWE-770). An unauthenticated client could hold the connection open indefinitely, or stream an endless request line or header and exhaust memory, including in an application that embeds the server such as MediaMTX. The WebSocket path used ReadMessage() without SetReadLimit(). Module github.com/bluenviron/gortsplib/v5 versions >= 5.0.0, < 5.7.0 are affected. Patched in 5.7.0. There is no CVE and no CVSS score. The advisory credits ucsurf as reporter. Fixed by Alessandro Ros (@aler9).",
  "discovered_at": "2026-10-08T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-02T03:15:00+03:00",
  "pr": null,
  "references": [
    "https://github.com/bluenviron/gortsplib/pull/1215",
    "https://github.com/bluenviron/gortsplib/pull/1216",
    "https://github.com/bluenviron/gortsplib/pull/1217",
    "https://github.com/bluenviron/gortsplib/releases/tag/v5.7.0"
  ]
}
