CVE-2026-58172
JSON

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 packageVersionsReported by
ThreeMammals Ocelotup to 24.1.0
Not affected: f156fd4017ca25025fffdad8ec56c1d657dfb402
CVE List

All scores

VulnCheck9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
VulnCheck9.3critical CVSS:4.0CVSS: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

CWE-288

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

Sources

SourceRecordLicence
CVE ListCVE-2026-58172 changed 2026-11-08CVE Terms of Use
NVDCVE-2026-58172 changed 2026-10-25Public domain