Skip to content

crypto/tls: ALPN negotiation error contains attacker controlled information #75652

Closed

Description

@rolandshoemaker

When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped. We expect most logging software filters control characters and such, so the impact for this is relatively limited, hence we are treating this as a PUBLIC track issue, per the Go Security Policy (https://go.dev/security/policy).

This is CVE-2025-58189.

Activity

  1. gopherbot commented on Sep 29, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/707776 mentions this issue: crypto/tls: quote protocols in ALPN error message

  2. added a commit that references this issue on Sep 29, 2025
    4e9006a
  3. rolandshoemaker commented on Sep 30, 2025

    @rolandshoemaker
    MemberAuthor

    @gopherbot please open backport issues.

  4. gopherbot commented on Sep 30, 2025

    @gopherbot
    Contributor

    Backport issue(s) opened: #75660 (for 1.24), #75661 (for 1.25).

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

  5. gopherbot commented on Sep 30, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/708095 mentions this issue: [release-branch.go1.25] crypto/tls: quote protocols in ALPN error message

  6. gopherbot commented on Sep 30, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/708096 mentions this issue: [release-branch.go1.24] crypto/tls: quote protocols in ALPN error message

  7. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Sep 30, 2025
  8. added this to the Go1.26 milestone on Sep 30, 2025
  9. locked and limited conversation to collaborators on Sep 30, 2026
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

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.Security

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions