CVE-2026-40097 Details
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.
A vulnerability in Step CA versions 0.24.0 prior to 0.30.0-rc3 allows an attacker to cause an index out-of-bounds panic by sending a crafted attestation key (AK) certificate with an empty Extended Key Usage (EKU) extension during TPM device attestation. This issue arises because Step CA expects the AK certificate to include the tcg-kp-AIKCertificate EKU OID. The validation process decodes the EKU extension from ASN.1, and a certificate with an empty EKU sequence can lead to a panic when the code attempts to access the first element of the slice. This vulnerability is only exploitable when a device-attest-01 ACME challenge with TPM attestation is active; deployments not using TPM attestation are unaffected.
Step CA users can upgrade to version 0.30.0 or later to address this vulnerability. If an upgrade is not possible, remove or disable any ACME provisioners that use TPM device attestation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/smallstep/certificates/commit/ffd31ac0a87e03b0224cb8363094bfe602242888 | [email protected] | Patch |
| https://github.com/smallstep/certificates/pull/2569 | [email protected] | Issue TrackingPatch |
| https://github.com/smallstep/certificates/releases/tag/v0.30.0 | [email protected] | ProductRelease Notes |
| https://github.com/smallstep/certificates/security/advisories/GHSA-9qq8-cgcv-qmc9 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-129 | Improper Validation of Array Index | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| smallstep step-ca | >= 0.24.0, < 0.30.0 0.30.0 rc1 0.30.0 rc2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 10, 2026 | New CVE Received | [email protected] |