# CVE-2026-40097: Step CA affected by an index out of bounds panic in TPM attestation EKU validation

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-10 · Modified: 2026-04-10
- Aliases: GHSA-9qq8-cgcv-qmc9, GO-2026-5297
- Record: https://cvemate.com/vulnerability/CVE-2026-40097 · JSON: https://cvemate.com/vulnerability/CVE-2026-40097/json

## Description

```text
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.
```

## Signals

- CVSS: 3.7 low (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.188%, percentile 8.786%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/smallstep certificates (Go): ≥ 0.24.0, \< 0.30.0
- smallstep certificates: ≥ 0.24.0, \< 0.30.0-rc3
- smallstep step-ca: ≥ 0.24.0, \< 0.30.0 \| 0.30.0:rc1 \| 0.30.0:rc2

## References

- <https://github.com/smallstep/certificates/security/advisories/GHSA-9qq8-cgcv-qmc9>
- <https://github.com/smallstep/certificates/pull/2569>
- <https://github.com/smallstep/certificates/commit/ffd31ac0a87e03b0224cb8363094bfe602242888>
- <https://github.com/smallstep/certificates/releases/tag/v0.30.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40097>
- <https://github.com/smallstep/certificates>

---

Data as of 2026-12-05T14:22:57.652Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
