9.3critical
Ocelot - IP Allow/Block List Bypass for WebSocket Upgrade Requests
- Severity
- 9.3critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
Ocelot through 24.1.0, fixed in commit f156fd4, contains a security control bypass vulnerability that allows denied clients to circumvent IP-based access restrictions by sending WebSocket upgrade requests. The WebSocket upgrade pipeline branch configured via MapWhen in OcelotPipelineExtensions.cs omits SecurityMiddleware, causing requests from blocked IP addresses to be proxied to downstream services without enforcement of the configured allow/block list.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ThreeMammals Ocelot | up to 24.1.0 Not affected: f156fd4017ca25025fffdad8ec56c1d657dfb402 | CVE List |
All scores
| VulnCheck | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| VulnCheck | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
Ocelot through 24.1.0, fixed in commit f156fd4, contains a security control bypass vulnerability that allows denied clients to circumvent IP-based access restrictions by sending WebSocket upgrade requests. The WebSocket upgrade pipeline branch configured via MapWhen in OcelotPipelineExtensions.cs omits SecurityMiddleware, causing requests from blocked IP addresses to be proxied to downstream services without enforcement of the configured allow/block list.
NVD (es)
Ocelot hasta la versión 24.1.0, corregido en el commit f156fd4, contiene una vulnerabilidad de omisión de control de seguridad que permite a clientes denegados eludir las restricciones de acceso basadas en IP enviando solicitudes de actualización de WebSocket. La rama de la tubería de actualización de WebSocket configurada a través de MapWhen en OcelotPipelineExtensions.cs omite SecurityMiddleware, lo que provoca que las solicitudes de direcciones IP bloqueadas sean redirigidas a servicios posteriores sin la aplicación de la lista de permitidos/bloqueados configurada.
References
| https://github.com/ThreeMammals/Ocelot/issues/2403 | exploit, issue-tracking, technical-description | |
| https://github.com/ThreeMammals/Ocelot/pull/2406 | issue-tracking, patch | |
| https://github.com/ThreeMammals/Ocelot/commit/f156fd4017ca25025fffdad8ec56c1d657dfb402 | patch | |
| https://www.vulncheck.com/advisories/ocelot-ip-allow-block-list-bypass-for-websocket-upgrade-requests | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58172 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-58172 changed 2026-10-25 | Public domain |