CVE-2026-40097 Step CA affected by an index out of bounds panic in TPM attestation EKU validation
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| smallstep github.com/smallstep/certificates(Go) | >= 0.24.0, < 0.30.0 | 0.30.0 | Fixed |
| smallstep Step-CA | = 0.30.0-rc1; = 0.30.0-rc2; >= 0.24.0, < 0.30.0 | 0.30.0 | Fixed |
| smallstep github.com/smallstep/certificates | = >= 0.24.0, < 0.30.0-rc3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| smallstep github.com/smallstep/certificates(Go) | >= 0.24.0, < 0.30.0 | 0.30.0 |
| smallstep github.com/smallstep/certificates | = >= 0.24.0, < 0.30.0-rc3 | No fix listed |
| smallstep Step-CA | >= 0.24.0, < 0.30.0 | 0.30.0 |
| smallstep Step-CA | = 0.30.0-rc1 | No fix listed |
| smallstep Step-CA | = 0.30.0-rc2 | No fix listed |
References
- https://github.com/smallstep/certificates/security/advisories/GHSA-9qq8-cgcv-qmc9 mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/smallstep/certificates/pull/2569 issue-tracking patch
- https://github.com/smallstep/certificates/commit/ffd31ac0a87e03b0224cb8363094bfe602242888 patch
- github.com product
- https://github.com/smallstep/certificates/releases/tag/v0.30.0 product release-notes
- github.com