GO-2026-5018

    Dashboard / Vulnerabilities / GO-2026-5018

    GO-2026-5018

    Published: 22 May 2026Last Modified: 5 Aug 2026

    Summary: Invoking pathological RSA/DSA parameters may cause DoS in golang.org/x/crypto/ssh

    Details: 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

    Name: golang.org/x/crypto

    Purl: pkg:golang/golang.org/x/crypto

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.52.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High