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

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 15% of CVEs (2026-11-30)
- Published: 2026-04-10T16:34:53.330Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-9qq8-cgcv-qmc9, GO-2026-5297
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- smallstep certificates: >= 0.24.0, < 0.30.0-rc3
- github.com/smallstep/certificates (Go): from 0.24.0 before 0.30.0
- smallstep step-ca: from 0.24.0 before 0.30.0; 0.30.0

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/smallstep/certificates/security/advisories/GHSA-9qq8-cgcv-qmc9> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/smallstep/certificates/pull/2569> (fix, issue-tracking, patch, web)
- <https://github.com/smallstep/certificates/commit/ffd31ac0a87e03b0224cb8363094bfe602242888> (fix, patch, web)
- <https://github.com/smallstep/certificates/releases/tag/v0.30.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40097> (advisory)
- <https://github.com/smallstep/certificates> (package)

## Sources

- CVE List: [CVE-2026-40097](https://www.cve.org/CVERecord?id=CVE-2026-40097), CVE Terms of Use, modified 2026-04-10
- GitHub Advisory Database: [GHSA-9qq8-cgcv-qmc9](https://github.com/advisories/GHSA-9qq8-cgcv-qmc9), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5297](https://pkg.go.dev/vuln/GO-2026-5297), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40097](https://nvd.nist.gov/vuln/detail/CVE-2026-40097), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40097 · Whole record: https://cve.day/CVE-2026-40097.json · Rebuilt by cve.day 2026-11-25T22:59:18.526Z
