CVE-2025-66406: Github.com/smallstep/certificates Step-ca Has Improper Authorization Check Vulnerability

MODERATE
Advisory Identifier: GHSA-j7c9-79x7-8hpr
CVSS 5.0
CWE-285 CWE-863
Published
Advisory Summary

CVE-2025-66406 is a MODERATE (CVSS 5.0) step-ca has improper authorization check vulnerability (CWE-285: Improper Authorization) affecting Github.com/smallstep/certificates libraries in the Go ecosystem. The issue involves step-ca has improper authorization check for ssh certificate revocation. Remediation is available by upgrading affected packages to version 0.29.0.

CVE-2025-66406 at a Glance

CVE Identifier CVE-2025-66406
GHSA Identifier GHSA-j7c9-79x7-8hpr
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-285: Improper Authorization
Affected Product Github.com/smallstep/certificates
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2025-66406

To remediate this vulnerability, upgrade all affected Github.com/smallstep/certificates dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/smallstep/certificates fixed: 0.29.0
Upgrade github.com/smallstep/certificates to 0.29.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/smallstep/certificates

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-66406, inspect your project dependencies for Github.com/smallstep/certificates:

inspect dependencies for github.com/smallstep/certificates

Analyze the terminal output to locate any version of Github.com/smallstep/certificates in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.29.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Github.com/smallstep/certificates, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary An authorized attacker can bypass authorization checks and revoke any SSH certificate issued by Step CA by using a valid revocation token. ## Details Step CA users can obtain SSH certificates from a few provisioners. The SSHPOP provisioner allows revocation of the SSH certificate (preventing future certificate renewals) using a token. Due to a missing validity check, this token could be used to revoke any SSH certificate issued by the CA. To create a token, an attacker must have access to the CA endpoint and a valid SSH certificate, meaning they were already authorized to obtain an SSH certificate. The attacker must also know the serial number of the certificate they want to revoke. ## Impact There is no way to mitigate this attack. It is recommended to update to v0.29.0 or newer. ## Fix In v0.29.0, the token validation logic was strengthened to bind each token to a specific SSH certificate serial number. ## Acknowledgements This issue was identified and reported by Gabriel Departout and Andy Russon, from [AMOSSYS](http://amossys.fr/). This audit was sponsored by [ANSSI](https://cyber.gouv.fr/) (French Cybersecurity Agency) based on [their Open-Source security audit program](https://cyber.gouv.fr/open-source-lanssi#:~:text=Financement%20d%27%C3%A9valuations%20de%20s%C3%A9curit%C3%A9%20de%20logiciels%20libres). ## Embargo List If your organization runs Step CA in production and would like advance, embargoed notification of future security updates, visit https://u.step.sm/disclosure to request inclusion on our embargo list. Stay safe, and thank you for helping us keep the ecosystem secure.

CVE-2025-66406 Affected Github.com/smallstep/certificates Versions

1 component(s)
Fixed Versions:
0.29.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/smallstep/certificates
Go
< 0.29.0
0.29.0

References

Frequently Asked Questions

What is CVE-2025-66406?
CVE-2025-66406 is a security vulnerability in Github.com/smallstep/certificates involving step-ca Has Improper Authorization Check for SSH Certificate Revocation under CWE-285: Improper Authorization.
Which Github.com/smallstep/certificates versions are affected?
Affected versions include releases prior to 0.29.0 across affected packages: github.com/smallstep/certificates.
What version fixes CVE-2025-66406?
Upgrading to 0.29.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/smallstep/certificates affected?
Yes, github.com/smallstep/certificates is affected in releases prior to 0.29.0. Upgrade your dependency to 0.29.0 or later.
What is the CVSS score of CVE-2025-66406?
CVE-2025-66406 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2025-66406?
CVE-2025-66406 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2025-66406?
Run the dependency tree command: 'inspect dependencies for github.com/smallstep/certificates'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j7c9-79x7-8hpr",
  "modified" : "2025-12-20T02:28:23Z",
  "published" : "2025-12-03T16:27:59Z",
  "aliases" : [ "CVE-2025-66406" ],
  "summary" : "step-ca Has Improper Authorization Check for SSH Certificate Revocation",
  "details" : "## Summary\nAn authorized attacker can bypass authorization checks and revoke any SSH certificate issued by Step CA by using a valid revocation token.\n\n## Details\nStep CA users can obtain SSH certificates from a few provisioners. The SSHPOP provisioner allows revocation of the SSH certificate (preventing future certificate renewals) using a token. Due to a missing validity check, this token could be used to revoke any SSH certificate issued by the CA.\n\nTo create a token, an attacker must have access to the CA endpoint and a valid SSH certificate, meaning they were already authorized to obtain an SSH certificate. The attacker must also know the serial number of the certificate they want to revoke.\n\n## Impact\nThere is no way to mitigate this attack. It is recommended to update to v0.29.0 or newer.\n\n## Fix\nIn v0.29.0, the token validation logic was strengthened to bind each token to a specific SSH certificate serial number.\n\n## Acknowledgements\nThis issue was identified and reported by Gabriel Departout and Andy Russon, from [AMOSSYS](http://amossys.fr/). This audit was sponsored by [ANSSI](https://cyber.gouv.fr/) (French Cybersecurity Agency) based on [their Open-Source security audit program](https://cyber.gouv.fr/open-source-lanssi#:~:text=Financement%20d%27%C3%A9valuations%20de%20s%C3%A9curit%C3%A9%20de%20logiciels%20libres).\n\n## Embargo List\n\nIf your organization runs Step CA in production and would like advance, embargoed notification of future security updates, visit https://u.step.sm/disclosure to request inclusion on our embargo list.\n\nStay safe, and thank you for helping us keep the ecosystem secure.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/smallstep/certificates"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.29.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.28.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/smallstep/certificates/security/advisories/GHSA-j7c9-79x7-8hpr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66406"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/smallstep/certificates"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-03T16:27:59Z",
    "nvd_published_at" : "2025-12-03T20:16:26Z"
  }
}