{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29040 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-29040 is a medium-severity unsafe deserialization vulnerability in tpm2-software tpm2-tss, published on 28 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-29040 and fix it if it is affected.\n\nWhat it is: CVE-2024-29040 is a medium-severity unsafe deserialization vulnerability in tpm2-software tpm2-tss, published on 28 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29040 exists.\n\nAffected product: tpm2-software tpm2-tss. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2024-29040/ (Markdown: https://insights.sbomify.com/CVE-2024-29040/index.md)","id":"CVE-2024-29040","markdown":"https://insights.sbomify.com/CVE-2024-29040/index.md","name":"CVE-2024-29040","record":{"aliases":["AZL-42978","AZL-42985","BELL-CVE-2024-29040","DEBIAN-CVE-2024-29040","GHSA-837m-jw3m-h9p6","MGASA-2024-0171","OESA-2024-1613","OESA-2024-1637","OESA-2024-1638","SUSE-SU-2024:1605-1","SUSE-SU-2024:1635-1","SUSE-SU-2024:1635-2","UBUNTU-CVE-2024-29040","openSUSE-SU-2024:13933-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"TPM2 Software Stack","requires_auth":"none","summary":"Attackers can bypass TPM quote verification by manipulating JSON fields, potentially gaining unauthorized access to data or services.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"This repository hosts source code implementing the Trusted Computing Group's (TCG) TPM2 Software Stack (TSS). The JSON Quote Info returned by Fapi_Quote has to be deserialized by Fapi_VerifyQuote to the TPM Structure `TPMS_ATTEST`. For the field `TPM2_GENERATED magic` of this structure any number can be used in the JSON structure. The verifier can receive a state which does not represent the actual, possibly malicious state of the device under test. The malicious device might get access to data it shouldn't, or can use services it shouldn't be able to. This \nissue has been patched in version 4.1.0.","ecosystems":["SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3","openSUSE:Leap Micro 5.4"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Fapi Verify Quote: Does not detect if quote was not generated by TPM","id":"CVE-2024-29040","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"deserialization","year":"2024"},"n_packages":8,"n_references":2,"next":{"headline":"Express.js Open Redirect in malformed URLs","id":"CVE-2024-29041"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2024:1635-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2024:1635-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:1635-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:1635-2"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/suse/tpm2-0-tss\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:1635-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/opensuse/tpm2-0-tss\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:1635-1"},{"ecosystem":"openSUSE:Leap Micro 5.3","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/opensuse/tpm2-0-tss\u0026distro=openSUSE%20Leap%20Micro%205.3","source":"SUSE-SU-2024:1635-1"},{"ecosystem":"openSUSE:Leap Micro 5.4","fixed":["3.1.0-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"tpm2-0-tss","purl":"pkg:rpm/opensuse/tpm2-0-tss\u0026distro=openSUSE%20Leap%20Micro%205.4","source":"SUSE-SU-2024:1635-1"}],"prev":{"headline":"Missing check in tpm2_checkquote allows attackers to misrepresent the TPM state","id":"CVE-2024-29039"},"products":["tpm2-tss"],"published":"2024-06-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["tpm2-software"]},"summary":"Attackers can bypass TPM quote verification by manipulating JSON fields, potentially gaining unauthorized access to data or services.","url":"https://insights.sbomify.com/CVE-2024-29040/"}