]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: mitigate DoS vector when intermediate certificate contains DSA public key
authorNeal Patel <nealpatel@google.com>
Thu, 11 Sep 2025 20:27:04 +0000 (16:27 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 7 Oct 2025 18:23:13 +0000 (11:23 -0700)
commit6e4007e8cffbb870e6b606307ab7308236ecefb9
tree71b01b542985a369ca084e6d83f97fad113d54b1
parent6f7926589d03180863aa05cbb55a9d9c63e76b99
crypto/x509: mitigate DoS vector when intermediate certificate contains DSA public key

An attacker could craft an intermediate X.509 certificate
containing a DSA public key and can crash a remote host
with an unauthenticated call to any endpoint that
verifies the certificate chain.

Thank you to Jakub Ciolek for reporting this issue.

Fixes CVE-2025-58188
Fixes #75675

Change-Id: I2ecbb87b9b8268dbc55c8795891e596ab60f0088
Reviewed-on: https://go-internal-review.googlesource.com/c/go/+/2780
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Roland Shoemaker <bracewell@google.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/709853
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/crypto/x509/verify.go
src/crypto/x509/verify_test.go