CVE-2026-58172

Ocelot - IP Allow/Block List Bypass for WebSocket Upgrade Requests

Published Jun 30, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Ocelot up to version 24.1.0 has a security control bypass that lets clients with blocked IPs send WebSocket upgrade requests, causing the pipeline to the SecurityMiddleware and proxy traffic to downstream services. This enables attackers to reach services that should be denied, potentially exposing sensitive data or allowing further compromise.

Affected Systems

The affected product is ThreeMammals Ocelot, specifically versions up to and including 24.1.0; the issue resides in the MapWhen configuration branch that handles WebSocket upgrades.

Risk and Exploitability

The CVSS score of 9.3 indicates a critical severity. EPSS data is unavailable, so the exact likelihood of exploitation cannot be quantified at this time. The vulnerability is not listed in the CISA KEV catalog, but the attack vector is remote, relying on a client to initiate a WebSocket upgrade from a blocked IP address, bypassing the IP allow/block list before any access control is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ocelot to a version that includes the commit f156fd4 or apply that patch directly.
  • Verify that the pipeline configuration for WebSocket upgrades includes the SecurityMiddleware and that the MapWhen branch does not omit it.
  • If a direct upgrade is not possible, block WebSocket upgrade traffic from denied IP addresses using a firewall or reverse proxy rule and monitor for anomalous connections.

Generated by OpenCVE AI on June 30, 2026 at 17:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Threemammals
Threemammals ocelot
Vendors & Products Threemammals
Threemammals ocelot
Type Values Removed Values Added
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.
Title Ocelot - IP Allow/Block List Bypass for WebSocket Upgrade Requests
Weaknesses CWE-288
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 9.3, 'vector': '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'}

Weaknesses
  • CWE-288

    Authentication Bypass Using an Alternate Path or Channel

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:06 PM
Reserved
Jun 29, 2026, 4:03 PM
Status
Deferred
Published
Jun 30, 2026, 5:16 PM
Modified
Oct 25, 2026, 9:10 PM