CVE-2026-40097

Source
https://cve.org/CVERecord?id=CVE-2026-40097
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40097.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40097
Aliases
Downstream
Published
2026-04-10T16:34:53.330Z
Modified
2026-07-15T01:49:22.118580631Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Step CA affected by an index out of bounds panic in TPM attestation EKU validation
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-129"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40097.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/smallstep/certificates

Affected ranges

Type
GIT
Repo
https://github.com/smallstep/certificates
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:smallstep:step-ca:*:*:*:*:*:go:*:*",
        "cpe:2.3:a:smallstep:step-ca:0.30.0:rc1:*:*:*:go:*:*",
        "cpe:2.3:a:smallstep:step-ca:0.30.0:rc2:*:*:*:go:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "0.24.0"
        },
        {
            "fixed": "0.30.0"
        },
        {
            "introduced": "0.30.0-rc1"
        },
        {
            "last_affected": "0.30.0-rc1"
        },
        {
            "introduced": "0.30.0-rc2"
        },
        {
            "last_affected": "0.30.0-rc2"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

0.*
0.30.0-rc1
0.30.0-rc2
v0.*
v0.30.0-rc1
v0.30.0-rc3
v0.30.0-rc4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40097.json"