Vulnerability · Published Mar 12, 2025 · Assigned by Go
CVE-2025-22870HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net
Medium 4.4
In plain English
A medium-severity security flaw in net/http from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Matching of hosts against proxy patterns can improperly treat 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | go | 1.23.7-r0 | ALPINE-CVE-2025-22870 |
| Alpine:v3.22 | go | 1.24.1-r0 | ALPINE-CVE-2025-22870 |
| Alpine:v3.23 | go | 1.24.1-r0 | ALPINE-CVE-2025-22870 |
| Alpine:v3.24 | go | 1.24.1-r0 | ALPINE-CVE-2025-22870 |
| Alpine:v3.22 | rclone | 1.69.2-r0 | ALPINE-CVE-2025-22870 |
| Alpine:v3.23 | rclone | 1.69.2-r0 | ALPINE-CVE-2025-22870 |
| Alpine:v3.24 | rclone | 1.69.2-r0 | ALPINE-CVE-2025-22870 |
| Debian:12 | golang-1.19 | no fix listed | DEBIAN-CVE-2025-22870 |
| Debian:13 | golang-1.24 | 1.24.1-1 | DEBIAN-CVE-2025-22870 |
| Go | golang.org/x/net | 0.36.0 | GO-2025-3503 |
| Go | golang.org/x/net | 0.36.0 | GHSA-qxp5-gwg8-xv66 |
| Go | stdlib | 1.23.7, 1.24.1 | GO-2025-3503 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:22.04:LTS | golang-1.22 | 1.22.2-2~22.04.3 | USN-7574-1 |
| Ubuntu:22.04:LTS | golang-1.22 | 1.22.2-2~22.04.3 | UBUNTU-CVE-2025-22870 |
| Ubuntu:24.04:LTS | golang-1.22 | 1.22.2-2ubuntu0.4 | UBUNTU-CVE-2025-22870 |
| Ubuntu:24.04:LTS | golang-1.22 | 1.22.2-2ubuntu0.4 | USN-7574-1 |
| Ubuntu:22.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:24.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:25.10 | golang-1.23 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:26.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22870 |
| Ubuntu:26.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-22870 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | net/http | 0 – before 1.23.71.24.0-0 – before 1.24.1 |
| golang.org/x/net | golang.org/x/net/http/httpproxy | 0 – before 0.36.0 |
| golang.org/x/net | golang.org/x/net/proxy | 0 – before 0.36.0 |
Weakness: CWE-115 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L