Skip to content

crypto/x509: excluded DNS constraints not properly applied to wildcard domains #78332

Closed

Description

@neild

When verifying a certificate chain containing excluded DNS constraints, these
constraints are not correctly applied to wildcard DNS SANs which use a different
case than the constraint.
 
For example, if a certificate contains the DNS name "*.example.com" and the
excluded DNS name "EXAMPLE.COM", the constraint will not be applied.
 
This only affects validation of otherwise trusted certificate chains, issued by
a root CA in the VerifyOptions.Roots CertPool, or in the system certificate
pool.

This issue only affects Go 1.26. 

Thank you to Riyas from Saintgits College of Engineering, k1rnt, @1seal for reporting this issue.
 
 
This is CVE-2026-33810 and Go issue https://go.dev/issue/78332.


This is a PRIVATE issue for CVE-2026-33810, tracked in http://b/491458235 and fixed by https://go-internal-review.git.corp.google.com/c/go/+/3860.

Activity

  1. added this to the Go1.27 milestone on Mar 24, 2026
  2. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Mar 25, 2026
  3. dmitshur commented on Mar 25, 2026

    @dmitshur
    Member

    CC @golang/security, @golang/release.

  4. neild commented on Mar 27, 2026

    @neild
    ContributorAuthor

    @gopherbot please backport to go1.26.

  5. gopherbot commented on Mar 27, 2026

    @gopherbot
    Contributor

    Backport issue(s) opened: #78418 (for 1.26).

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

  6. gopherbot commented on Apr 7, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/763544 mentions this issue: [release-branch.go1.26] crypto/x509: fix wildcard constraint map case sensitivity

  7. added a commit that references this issue on Apr 7, 2026
    ceb4da6
  8. changed the title [-]security: fix CVE-2026-33810[/-] [+]crypto/x509: excluded DNS constraints not properly applied to wildcard domains[/+] on Apr 7, 2026
  9. gopherbot commented on Apr 7, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/763763 mentions this issue: crypto/x509: fix wildcard constraint map case sensitivity

  10. added a commit that references this issue on Apr 8, 2026
    4978c20
  11. added a commit that references this issue on Jul 22, 2026
    5fe1796
  12. added a commit that references this issue on Sep 4, 2026
    5eb44f0
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.Securityrelease-blockervulncheck or vulndbIssues for the x/vuln or x/vulndb repo

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions