CVE-2026-40097
LOW 3.7CVSS 3.1Step CA affected by an index out of bounds panic in TPM attestation EKU validation
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.
- Published
- 10 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-129
- Also known as
- GHSA-9qq8-cgcv-qmc9GO-2026-5297
- Sources
- NVDJSONOSV GHSA-9qq8-cgcv-qmc9JSONOSV GO-2026-5297JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smallstep | step-cacpe:2.3:a:smallstep:step-ca:*:*:*:*:*:go:*:* |
>= 0.24.0, < 0.30.0 | 0.30.0 |
| NVD | smallstep | step-cacpe:2.3:a:smallstep:step-ca:0.30.0:rc1:*:*:*:go:*:* |
= 0.30.0 | |
| NVD | smallstep | step-cacpe:2.3:a:smallstep:step-ca:0.30.0:rc2:*:*:*:go:*:* |
= 0.30.0 | |
| OSV | Go | github.com/smallstep/certificates | >= 0.24.0, < 0.30.0 | 0.30.0 |
References
- https://github.com/smallstep/certificates/commit/ffd31ac0a87e03b0224cb8363094bfe602242888 · Patch, WEB, FIX
- https://github.com/smallstep/certificates/pull/2569 · Issue Tracking, Patch, WEB, FIX
- https://github.com/smallstep/certificates/releases/tag/v0.30.0 · Product, Release Notes, WEB
- https://github.com/smallstep/certificates/security/advisories/GHSA-9qq8-cgcv-qmc9 · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-40097 · ADVISORY
- https://github.com/smallstep/certificates · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Apr 2026)