CVE-2025-22870
Go vulnerability analysis and mitigation

Overview

CVE-2025-22870 is a vulnerability discovered in Go's proxy host matching functionality, disclosed on March 12, 2025. The vulnerability affects the handling of IPv6 zone IDs in proxy patterns, specifically in the golang.org/x/net package before version v0.36.0. The issue was reported by Juho Forsén of Mattermost (Go Issue, Go Packages).

Technical details

The vulnerability occurs when matching hosts against proxy patterns, where the system improperly treats an IPv6 zone ID as a hostname component. For example, when the NO_PROXY environment variable is set to '*.example.com', a request to '[::1%25.example.com]:80' will incorrectly match and not be proxied. The issue affects multiple components including net/http, x/net/proxy, and x/net/http/httpproxy. The vulnerability has been assigned a CVSS 3.1 Base Score of 4.4 (MEDIUM) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L (NVD).

Impact

The vulnerability allows for improper bypassing of proxy settings through manipulation of IPv6 zone IDs. This could potentially lead to security controls being circumvented, as requests that should be routed through a proxy are instead made directly (OSS Security).

Exploitability

The vulnerability requires local access and low complexity to exploit. It has been classified with CWE-115 (Misinterpretation of Input), indicating that the core issue lies in how the application interprets and processes input data (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Go versions 1.24.1 and 1.23.7. Users are advised to upgrade to these patched versions. For the golang.org/x/net package, updating to version v0.36.0 or later will resolve the vulnerability (Go Packages).

Additional resources


SourceThis report was generated using AI

Related Go vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-54365HIGH8.7
  • Go logoGo
  • trigger-dev
NoYesJun 23, 2026
CVE-2026-39822HIGH7.8
  • Go logoGo
  • kube-bench-fips
NoYesJul 08, 2026
CVE-2026-42504HIGH7.5
  • Go logoGo
  • commercial-expanso-edge
NoYesJun 02, 2026
CVE-2026-42505MEDIUM5.3
  • Go logoGo
  • kapacitor-fips-1.7
NoYesJul 08, 2026
CVE-2026-42507MEDIUM5.3
  • Go logoGo
  • authentik-fips-2025.12
NoYesJun 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management