GO-2026-5018
Invoking pathological RSA/DSA parameters may cause DoS in golang.org/x/crypto/ssh
At a glance
- Published
- Updated
- CVE
- CVE-2026-39829
- Aliases
- GHSA-w879-237q-wc7r
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.
Affected packages
| Package | Versions |
|---|---|
| Go · golang.org/x/crypto | introduced 0, fixed 0.52.0 |
References
- https://go.dev/issue/79565 REPORT
- https://groups.google.com/g/golang-announce/c/a082jnz-LvI WEB
- https://go.dev/cl/781641 FIX
- https://go.dev/cl/781661 FIX
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |