Skip to content

crypto/x509: Verify panics on certificates with an unknown public key algorithm [CVE-2024-24783] #65390

Closed

Description

@neild

Verifying a certificate chain which contains a certificate with an unknown public
key algorithm will cause Certificate.Verify to panic.

This affects all crypto/tls clients, and servers that set Config.ClientAuth to
VerifyClientCertIfGiven or RequireAndVerifyClientCert. The default behavior is
for TLS servers to not verify client certificates.

Thanks to John Howard (Google) for reporting this issue. This is CVE-2024-24783.

/cc @golang/security and @golang/release

Activity

  1. added this to the Go1.22 milestone on Jan 30, 2024
  2. neild commented on Jan 30, 2024

    @neild
    ContributorAuthor

    @gopherbot please open backport issues for this security fix.

  3. gopherbot commented on Jan 30, 2024

    @gopherbot
    Contributor

    Backport issue(s) opened: #65391 (for 1.20), #65392 (for 1.21).

    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 Jan 31, 2024
  5. modified the milestones: Go1.22, Go1.23 on Feb 2, 2024
  6. self-assigned this
    on Feb 21, 2024
  7. gopherbot commented on Mar 5, 2024

    @gopherbot
    Contributor

    Change https://go.dev/cl/569235 mentions this issue: [release-branch.go1.22] crypto/x509: make sure pub key is non-nil before interface conversion

  8. gopherbot commented on Mar 5, 2024

    @gopherbot
    Contributor

    Change https://go.dev/cl/569238 mentions this issue: [release-branch.go1.21] crypto/x509: make sure pub key is non-nil before interface conversion

  9. changed the title [-]security: fix CVE-2024-24783[/-] [+]crypto/x509: Verify panics on certificates with an unknown public key algorithm [CVE-2024-24783][/+] on Mar 5, 2024
  10. gopherbot commented on Mar 5, 2024

    @gopherbot
    Contributor

    Change https://go.dev/cl/569339 mentions this issue: crypto/x509: make sure pub key is non-nil before interface conversion

  11. added a commit that references this issue on Mar 5, 2024
    afb1050
  12. locked and limited conversation to collaborators on Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions