Skip to content

x/crypto/ssh: pathological RSA/DSA parameters may cause DoS #79565

Closed

Description

@thatnealpatel

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.

Thanks to NCC Group Cryptography Services, sponsored by Teleport for reporting this issue.

This is CVE-2026-39829 and Go issue https://go.dev/issue/79565.


This was a PRIVATE track issue, tracked in http://b/502994717.

Activity

  1. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on May 21, 2026
  2. gopherbot commented on May 21, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/781641 mentions this issue: ssh: reject RSA keys with excessively large moduli

  3. gopherbot commented on May 21, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/781661 mentions this issue: ssh: enforce strict limits on DSA key parameters

  4. added a commit that references this issue on May 22, 2026
    9c2cd33
  5. changed the title [-]security: fix CVE-2026-39829[/-] [+]ssh: pathological RSA/DSA parameters may cause DoS[/+] on May 22, 2026
  6. added a commit that references this issue on May 22, 2026
    8907318
  7. changed the title [-]ssh: pathological RSA/DSA parameters may cause DoS[/-] [+]x/crypto/ssh: pathological RSA/DSA parameters may cause DoS[/+] on May 22, 2026
  8. added this to the Unreleased milestone on May 22, 2026
  9. added 2 commits that reference this issue on Jun 23, 2026
    a5ad720
    80de5de
  10. added 8 commits that reference this issue on Aug 10, 2026
    b968567
    58c0f86
    2f93409
    394499b
    18d5ff1
    33a55e6
    52e76f7
    1ecb852
  11. added 2 commits that reference this issue on Aug 26, 2026
    f90aa23
    0a84505
  12. added a commit that references this issue on Oct 7, 2026
    86a318f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityrelease-blocker

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions