CVE-2026-40097Smallstep Step-ca
Low 3.7 No auth needed
Follow: this CVE · Smallstep · Smallstep Step-ca We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.1
- 3.7
- EPSS
- —
- Auth required
- No
- Published
- Apr 10, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-129
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
Step CA is an online certificate authority for secure, automated certificate management for DevOps. From 0.24.0 to before 0.30.0-rc3, an attacker can trigger an index out-of-bounds panic in Step CA by sending a crafted attestation key (AK) certificate with an empty Extended Key Usage (EKU) extension during TPM device attestation. When processing a device-attest-01 ACME challenge using TPM attestation, Step CA validates that the AK certificate contains the tcg-kp-AIKCertificate Extended Key Usage OID. During this validation, the EKU extension value is decoded from its ASN.1 representation and the first element is checked. A crafted certificate could include an EKU extension that decodes to an empty sequence, causing the code to panic when accessing the first element of the empty slice. This vulnerability is only reachable when a device-attest-01 ACME challenge with TPM attestation is configured. Deployments not using TPM device attestation are not affected. This vulnerability is fixed in 0.30.0-rc3.
What to do
- Apply the vendor's security update for Step-ca.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/smallstep/certificates |
≥ 0.24.0 < 0.30.0 |
0.30.0 |
go get github.com/smallstep/certificates@v0.30.0 |
| Go | github.com/smallstep/certificates |
≥ 0.24.0 < 0.30.0 |
0.30.0 |
go get github.com/smallstep/certificates@v0.30.0 |
Per OSV / GitHub Advisories (GHSA-9qq8-cgcv-qmc9, GO-2026-5297). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| smallstep | step-ca | ≥ 0.24.0 < 0.30.0 |
| smallstep | step-ca | 0.30.0 |
| smallstep | step-ca | 0.30.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Product Release Notes
- github.com Mitigation Vendor Advisory