# CVE-2026-58172: Ocelot - IP Allow/Block List Bypass for WebSocket Upgrade Requests

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-30T15:54:59.466Z
- Modified: 2026-11-08T14:06:52.690Z
- Weaknesses: CWE-288
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- ThreeMammals Ocelot: up to 24.1.0 (not affected: f156fd4017ca25025fffdad8ec56c1d657dfb402)

## Every score

- VulnCheck: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- VulnCheck: CVSS:4.0 9.3 Critical `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`

## 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

- CVE List: [CVE-2026-58172](https://www.cve.org/CVERecord?id=CVE-2026-58172), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-58172](https://nvd.nist.gov/vuln/detail/CVE-2026-58172), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58172 · Whole record: https://cve.day/CVE-2026-58172.json · Rebuilt by cve.day 2026-11-25T22:59:26.717Z
