{"answers":{"affected":"3 open source packages ship an affected version, including github.com/smallstep/certificates. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40097 in the wild and no public exploit code.","fix":"Upgrade github.com/smallstep/certificates to 0.30.0 or later.","what":"CVE-2026-40097 is a low-severity denial of service vulnerability in smallstep certificates, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40097 and fix it if it is affected.\n\nWhat it is: CVE-2026-40097 is a low-severity denial of service vulnerability in smallstep certificates, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40097 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/smallstep/certificates (Go): affected from 0.24.0; fixed in 0.30.0\n- github.com/smallstep/certificates (Go): affected from 0.24.0; fixed in 0.30.0\n- github.com/smallstep/certificates (Go): affected from 0.24.0; fixed in 0.30.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40097/ (Markdown: https://insights.sbomify.com/CVE-2026-40097/index.md)","id":"CVE-2026-40097","markdown":"https://insights.sbomify.com/CVE-2026-40097/index.md","name":"CVE-2026-40097","record":{"aliases":["CLEANSTART-2026-LF51380","CLEANSTART-2026-XI87503","GHSA-9qq8-cgcv-qmc9","GO-2026-5297","MINI-c5wr-7mfx-jwmr","MINI-j347-365p-qh3g"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Step CA certificate authority","requires_auth":"none","summary":"An attacker can cause a denial of service in Step CA by sending a crafted TPM attestation certificate with an empty EKU extension, triggering a panic.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"step-ca","vendor":"smallstep"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Step CA affected by an index out of bounds panic in TPM attestation EKU validation","id":"CVE-2026-40097","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"OpenMage LTS: Cross-user wishlist import leads to private option \u0026 file disclosure","id":"CVE-2026-40098"},"packages":[{"ecosystem":"Go","fixed":["0.30.0"],"introduced":["0.24.0"],"last_affected":[],"package":"github.com/smallstep/certificates","purl":null,"source":"GHSA-9qq8-cgcv-qmc9"},{"ecosystem":"Go","fixed":["0.30.0"],"introduced":["0.24.0"],"last_affected":[],"package":"github.com/smallstep/certificates","purl":"pkg:golang/github.com/smallstep/certificates","source":"GHSA-9qq8-cgcv-qmc9"},{"ecosystem":"Go","fixed":["0.30.0"],"introduced":["0.24.0"],"last_affected":[],"package":"github.com/smallstep/certificates","purl":"pkg:golang/github.com/smallstep/certificates","source":"GO-2026-5297"}],"prev":{"headline":"immich: Open Redirect via Shared Album name","id":"CVE-2026-40096"},"products":["certificates"],"published":"2026-04-10","related":[{"cvss_score":10,"headline":"Step CA: Unauthenticated Certificate Issuance via SCEP UpdateReq (MessageType=18)","id":"CVE-2026-30836","kev_date_added":null,"published":"2026-03-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-10","vendors":["smallstep"]},"summary":"An attacker can cause a denial of service in Step CA by sending a crafted TPM attestation certificate with an empty EKU extension, triggering a panic.","url":"https://insights.sbomify.com/CVE-2026-40097/"}