Skip to content

crypto/x509: panic when validating certificates with DSA public keys (CVE-2025-58188) #75675

Closed

Description

@neild

Validating certificate chains which contain DSA public keys can cause programs
to panic, due to a interface cast that assumes they implement the Equal method.

This affects programs which validate arbitrary certificate chains.

Thanks to Jakub Ciolek for reporting this issue.

This is CVE-2025-58188 and Go issue https://go.dev/issue/75675.


This is a PRIVATE issue for CVE-2025-58188, tracked in http://b/443718612.

/cc @golang/security and @golang/release

Activity

  1. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Sep 30, 2025
  2. added and removed
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Sep 30, 2025
  3. added this to the Go1.26 milestone on Sep 30, 2025
  4. neild commented on Oct 1, 2025

    @neild
    ContributorAuthor

    @gopherbot please open backport issues for this security fix

  5. gopherbot commented on Oct 1, 2025

    @gopherbot
    Contributor

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

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

    @gopherbot
    Contributor

    Change https://go.dev/cl/709836 mentions this issue: [release-branch.go1.24] crypto/x509: mitigate DoS vector when intermediate certificate contains DSA public key

  8. gopherbot commented on Oct 7, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/709845 mentions this issue: [release-branch.go1.25] crypto/x509: mitigate DoS vector when intermediate certificate contains DSA public key

  9. gopherbot commented on Oct 7, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/709853 mentions this issue: crypto/x509: mitigate DoS vector when intermediate certificate contains DSA public key

  10. added a commit that references this issue on Oct 7, 2025
    6e4007e
  11. changed the title [-]security: fix CVE-2025-58188[/-] [+]crypto/x509: panic when validating certificates with DSA public keys (CVE-2025-58188)[/+] on Oct 7, 2025
  12. wallrj-cyberark commented on Oct 27, 2025

    @wallrj-cyberark

    @neild Will you add this to the go vuln database? Or does it happen automatically?

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-blocker

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions