Skip to content

net/http, x/net/proxy, x/net/http/httpproxy: proxy bypass using IPv6 zone IDs #71984

Closed
@neild

Description

@neild

Matching of hosts against proxy patterns could improperly treat an IPv6 zone ID as a hostname component. For example, when the NO_PROXY environment variable was set to "*.example.com", a request to "[::1%25.example.com]:80` would incorrectly match and not be proxied.

Thanks to Juho Forsén of Mattermost for reporting this issue.

This is CVE-2025-22870

/cc @golang/security and @golang/release

Activity

neild

neild commented on Feb 26, 2025

@neild
ContributorAuthor

@gopherbot please open backport issues for this security fix

gopherbot

gopherbot commented on Feb 26, 2025

@gopherbot
Contributor

Backport issue(s) opened: #71985 (for 1.23), #71986 (for 1.24).

Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

added
NeedsFixThe path to resolution is known, but the work has not been done.
on Feb 27, 2025
added this to the Go1.25 milestone on Feb 27, 2025
changed the title [-]security: fix CVE-2025-22870[/-] [+]net/http, x/net/proxy, x/net/http/httpproxy: proxy bypass using IPv6 zone IDs[/+] on Mar 4, 2025
gopherbot

gopherbot commented on Mar 4, 2025

@gopherbot
Contributor

Change https://go.dev/cl/654717 mentions this issue: all: update golang.org/x/net

gopherbot

gopherbot commented on Mar 4, 2025

@gopherbot
Contributor

Change https://go.dev/cl/654795 mentions this issue: [release-branch.go1.24] all: updates vendored x/net

gopherbot

gopherbot commented on Mar 4, 2025

@gopherbot
Contributor

Change https://go.dev/cl/654796 mentions this issue: [release-branch.go1.23] all: updates vendored x/net

21 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityvulncheck or vulndbIssues for the x/vuln or x/vulndb repo

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @neild@dmitshur@gopherbot@gabyhelp

        Issue actions

          net/http, x/net/proxy, x/net/http/httpproxy: proxy bypass using IPv6 zone IDs · Issue #71984 · golang/go