GitHub Advisoryadvisory · Go

GHSA-w879-237q-wc7r golang.org/x/crypto: Invoking pathological RSA/DSA parameters may cause DoS

HIGH Published 2026-06-25 Modified 2026-07-20 Official page ↗
Aliases
CVE-2026-39829
Ecosystem
Go
Packages
golang.org/x/crypto
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-1284, CWE-347
Reviewed
2026-06-25

Affected packages

• Go golang.org/x/crypto: < 0.52.0 → fixed in 0.52.0

Description

The RSA and DSA public key parsers did not enforce size limits on key parameters. A crafted public key with an excessively large modulus or DSA parameter could cause several minutes of CPU consumption during signature verification. This could be triggered by unauthenticated clients during public key authentication. RSA moduli are now limited to 8192 bits, and DSA parameters are validated per FIPS 186-2.

Related

Alias · CVE (1)

  • CVE-2026-39829 The RSA and DSA public key parsers did not enforce size limits on key parameters. vulnerability

Weakness · CWE (2)

  • CWE-1284 Improper Validation of Specified Quantity in Input weakness
  • CWE-347 Improper Verification of Cryptographic Signature weakness

References