CVE-2026-40097: smallstep certificates Improper Validation of Array Index
Vulnerability summary
CVE-2026-40097 is a low (CVSS 3.7) Improper Validation of Array Index vulnerability in smallstep certificates. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 19.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 10-04-2026PublishedVulnerability first disclosed.
- 10-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
20%
Versus all other CVEs
30-day change
+0.10 pp
From 0.18% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Smallstep2 products
- certificates≥ 0.24.0, < 0.30.0-rc3
- step-ca≥ 0.24.0, < 0.30.0 | 0.30.0:rc1 | 0.30.0:rc2
Github.com/smallstep1 product
- certificates≥ 0.24.0, < 0.30.0
2 vendors · 3 products
References
6 links- github.com/smallstep/certificates/security/advisories/GHSA-9qq8-cgcv-qmc9X Refsource CONFIRMWEBAdvisoryMitigationVendor Advisory
- github.com/smallstep/certificates/commit/ffd31ac0a87e03b0224cb8363094bfe602242888X Refsource MISCWEBFIXPatch