Bug 2457394 (CVE-2026-40097) - CVE-2026-40097 github.com/smallstep/certificates: Step CA: Denial of Service via crafted attestation key certificate
Summary: CVE-2026-40097 github.com/smallstep/certificates: Step CA: Denial of Service ...
Keywords:
Status: NEW
Alias: CVE-2026-40097
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2457925 2488141
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-10 18:02 UTC by OSIDB Bzimport
Modified: 2026-07-18 08:30 UTC (History)
29 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-10 18:02:05 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.