{"id":"CVE-2026-40097","published":"2026-04-10T16:34:53Z","modified":"2026-04-10T18:30:15Z","title":"Step CA affected by an index out of bounds panic in TPM attestation EKU validation","vendor":"smallstep","product":"certificates","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00188,"percentile":0.0862,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://github.com/smallstep/certificates/security/advisories/GHSA-9qq8-cgcv-qmc9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/smallstep/certificates/pull/2569","tags":["x_refsource_MISC"]},{"url":"https://github.com/smallstep/certificates/commit/ffd31ac0a87e03b0224cb8363094bfe602242888","tags":["x_refsource_MISC"]},{"url":"https://github.com/smallstep/certificates/releases/tag/v0.30.0","tags":["x_refsource_MISC"]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":1.72},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"smallstep","affectedVersions":[{"vendor":"smallstep","product":"certificates","versions":[">= 0.24.0, < 0.30.0-rc3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-10T18:30:05.878982Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/smallstep/certificates","vulnerableRanges":[">=0.24.0, <0.30.0"],"patched":["0.30.0"],"from":["GHSA-9qq8-cgcv-qmc9","GO-2026-5297"],"provenance":"source"}],"summary":{"text":"Step CA, the online certificate authority from smallstep's certificates product, contains an out-of-bounds index flaw in its TPM device attestation code, where validating the attestation key certificate's Extended Key Usage extension can cause a panic when that extension decodes to an empty sequence. An attacker who can reach a device-attest-01 ACME challenge endpoint and submit a crafted attestation key certificate can crash the service, but only when the server is configured for TPM attestation over the network, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:19Z"},"euvd":{"id":"EUVD-2026-21506","exploited":false,"provenance":"source"}}