Skip to content

crypto/x509: quadratic complexity when checking name constraints (CVE-2025-58187) #75681

Closed

Description

@neild

Due to the design of the name constraint checking algorithm, the processing time
of some inputs scales non-linearly with respect to the size of the certificate.

This affects programs which validate arbitrary certificate chains.

Thanks to Jakub Ciolek for reporting this issue.

This is CVE-2025-58187 and Go issue https://go.dev/issue/75681.


This is a PRIVATE issue for CVE-2025-58187, tracked in http://b/443719585 and fixed by https://go-internal-review.git.corp.google.com/c/go/+/2820.

/cc @golang/security and @golang/release

Activity

  1. added this to the Go1.26 milestone on Sep 30, 2025
  2. neild commented on Oct 1, 2025

    @neild
    ContributorAuthor

    @gopherbot please open backport issues for this security fix

  3. gopherbot commented on Oct 1, 2025

    @gopherbot
    Contributor

    Backport issue(s) opened: #75714 (for 1.24), #75715 (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.

  4. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Oct 2, 2025
  5. gopherbot commented on Oct 7, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/709839 mentions this issue: [release-branch.go1.24] crypto/x509: improve domain name verification

  6. gopherbot commented on Oct 7, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/709848 mentions this issue: [release-branch.go1.25] crypto/x509: improve domain name verification

  7. gopherbot commented on Oct 7, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/709854 mentions this issue: crypto/x509: improve domain name verification

  8. added a commit that references this issue on Oct 7, 2025
    3fc4c79
  9. changed the title [-]security: fix CVE-2025-58187[/-] [+]crypto/x509: quadratic complexity when checking name constraints (CVE-2025-58187)[/+] on Oct 7, 2025
  10. locked and limited conversation to collaborators on Oct 13, 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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions