Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/crypto/ssh
  4. ›
  5. CVE-2026-39829

CVE-2026-39829: golang.org/x/crypto/ssh: Invoking pathological RSA/DSA parameters may cause DoS

June 25, 2026 (updated July 6, 2026)

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.

References

  • access.redhat.com/errata/RHSA-2026:26546
  • access.redhat.com/errata/RHSA-2026:26547
  • access.redhat.com/errata/RHSA-2026:29455
  • access.redhat.com/errata/RHSA-2026:35833
  • access.redhat.com/security/cve/CVE-2026-39829
  • bugzilla.redhat.com/show_bug.cgi?id=2480681
  • github.com/advisories/GHSA-w879-237q-wc7r
  • go.dev/cl/781641
  • go.dev/cl/781661
  • go.dev/issue/79565
  • groups.google.com/g/golang-announce/c/a082jnz-LvI
  • nvd.nist.gov/vuln/detail/CVE-2026-39829
  • pkg.go.dev/vuln/GO-2026-5018
  • security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39829.json

Code Behaviors & Features

Detect and mitigate CVE-2026-39829 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.52.0

Fixed versions

  • 0.52.0

Solution

Upgrade to version 0.52.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

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

Source file

go/golang.org/x/crypto/ssh/CVE-2026-39829.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 10 Jul 2026 12:17:20 +0000.