{"id":"CVE-2026-129306","kind":"vulnerability","aliases":["CVE-2026-129306"],"related":[],"title":"libspdm: certificate chains checked one link at a time, allowing impersonation","description":"libspdm is a sample implementation that follows the DMTF SPDM specifications. Prior to 3.8.3 and 4.0.0-rc2, libspdm_x509_verify_cert_chain() in os_stub/cryptlib_openssl/pk/x509.c and os_stub/cryptlib_mbedtls/pk/x509.c validates certificate signatures one link at a time instead of validating the complete X.509 path. In deployments using a pinned root with a constrained multi-tier PKI, an attacker holding a valid issuer credential below a constrained CA can present a subordinate certificate that exceeds pathLenConstraint or nameConstraints and may be accepted for SPDM identity validation. Exploitation requires the application to use libspdm's backend validation without an additional certificate-chain validation mechanism, the pinned root cannot be substituted, and the deployment's measurement policy must allow identity impersonation alone to satisfy its acceptance requirements. The mbedTLS backend remains unable to enforce nameConstraints because upstream mbedTLS does not implement that check. The full-chain validation changes are released in versions 3.8.3 and 4.0.0-rc2.","summary":"libspdm, a sample implementation of the DMTF SPDM device-attestation protocol, validates X.509 certificate chains one link at a time instead of the full path. A holder of a valid credential below a constrained CA can present a subordinate certificate that breaks path or name constraints and may be accepted as a device identity.","severity":"medium","cvss":4.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["device-attestation","embedded","firmware","libspdm","package","spdm"],"not_affected_if":["custom-chain-validation","measurement-policy-requires-more","pinned-root-not-used"],"how_to_check":"- Check the libspdm version in your build: `3.8.3` and `4.0.0-rc2` contain the fix; earlier versions are affected.\n- Look for calls to `libspdm_x509_verify_cert_chain()` and confirm whether your application adds its own certificate-chain validation.\n- Check whether you use the mbedTLS backend, which cannot enforce nameConstraints.","fix":"- libspdm: upgrade to `3.8.3` or `4.0.0-rc2`, which validate the complete certificate path.","status":"open","published_at":"2026-11-16T18:17:31+00:00","first_seen_at":"2026-11-16T18:38:03+00:00","triaged_at":"2026-11-16T18:39:12+00:00","updated_at":"2026-11-16T18:39:12+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T18:39:12Z","model":"claude-haiku-5-5","output":{"fix":"- libspdm: upgrade to `3.8.3` or `4.0.0-rc2`, which validate the complete certificate path.","reach":"network","title":"libspdm: certificate chains checked one link at a time, allowing impersonation","impact":"medium","summary":"libspdm, a sample implementation of the DMTF SPDM device-attestation protocol, validates X.509 certificate chains one link at a time instead of the full path. A holder of a valid credential below a constrained CA can present a subordinate certificate that breaks path or name constraints and may be accepted as a device identity.","audience":"developers","category":"package","nicknames":[],"who_cares":["libspdm","spdm","device-attestation","embedded","firmware"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"attacker is accepted as a device identity during SPDM validation","analyst_note":"","how_to_check":"- Check the libspdm version in your build: `3.8.3` and `4.0.0-rc2` contain the fix; earlier versions are affected.\n- Look for calls to `libspdm_x509_verify_cert_chain()` and confirm whether your application adds its own certificate-chain validation.\n- Check whether you use the mbedTLS backend, which cannot enforce nameConstraints.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["custom-chain-validation","pinned-root-not-used","measurement-policy-requires-more"],"who_is_affected":"Applications that use libspdm's built-in backend certificate validation with a pinned root and a constrained multi-tier PKI, where the measurement policy accepts identity alone. Systems that add their own full-chain certificate validation, or that substitute the pinned root, are not exposed. The mbedTLS backend cannot enforce nameConstraints regardless of version.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000823,"input_tokens":4903,"output_tokens":666,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-129306':14A,17A '-2026':13A,16A '3.8.3':94C,232C '4.0.0':96C,234C 'accept':76B,161C,204C 'addit':178C 'allow':10A,197C 'alon':200C 'applic':169C 'attack':138C 'attest':20B,36B 'backend':174C,208C 'break':68B 'ca':61B,147C 'cannot':187C 'cert':101C 'certif':2A,40B,66B,110C,152C,180C 'certificate-chain':179C 'chain':3A,41B,102C,181C,225C 'chang':227C 'check':4A,221C 'complet':121C 'constrain':60B,132C,146C 'constraint':72B 'credenti':57B,143C 'cve':12A,15A 'deploy':125C,192C 'devic':19B,35B,79B 'device-attest':18B,34B 'dmtf':32B,89C 'embed':21B 'enforc':212C 'exceed':154C 'exploit':166C 'firmwar':22B 'follow':87C 'full':50B,224C 'full-chain':223C 'hold':139C 'holder':53B 'ident':80B,164C,198C 'imperson':11A,199C 'implement':29B,85C,219C 'instead':47B,117C 'issuer':142C 'libspdm':1A,23B,26B,81C,98C,172C 'link':6A,43B,113C 'may':74B,159C 'mbedtl':207C,216C 'measur':194C 'mechan':183C 'multi':134C 'multi-ti':133C 'must':196C 'name':71B 'nameconstraint':157C,213C 'one':5A,42B,112C 'os':104C,107C 'packag':24B 'path':51B,69B,123C 'pathlenconstraint':155C 'pin':128C,185C 'pki':136C 'polici':195C 'present':63B,149C 'prior':92C 'protocol':37B 'rc2':97C,235C 'releas':229C 'remain':209C 'requir':167C,205C 'root':129C,186C 'sampl':28B,84C 'satisfi':202C 'signatur':111C 'spdm':25B,33B,90C,163C 'specif':91C 'stub/cryptlib_mbedtls/pk/x509.c':108C 'stub/cryptlib_openssl/pk/x509.c':105C 'subordin':65B,151C 'substitut':189C 'tier':135C 'time':9A,46B,116C 'unabl':210C 'upstream':215C 'use':126C,171C 'valid':38B,56B,109C,119C,141C,165C,175C,182C,226C 'verifi':100C 'version':231C 'without':176C 'x.509':39B,122C 'x509':99C","nicknames":[],"mitigations":[],"who_affected":"Applications that use libspdm's built-in backend certificate validation with a pinned root and a constrained multi-tier PKI, where the measurement policy accepts identity alone. Systems that add their own full-chain certificate validation, or that substitute the pinned root, are not exposed. The mbedTLS backend cannot enforce nameConstraints regardless of version.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["deviceattestation","embedded","firmware","libspdm","medium","package","spdm"],"campaign_type":null,"search_a":"'-129306':14A,17A '-2026':13A,16A 'allow':10A 'certif':2A 'chain':3A 'check':4A 'cve':12A,15A 'imperson':11A 'libspdm':1A 'link':6A 'one':5A 'time':9A","search_b":"'accept':76B 'attest':20B,36B 'break':68B 'ca':61B 'certif':40B,66B 'chain':41B 'constrain':60B 'constraint':72B 'credenti':57B 'devic':19B,35B,79B 'device-attest':18B,34B 'dmtf':32B 'embed':21B 'firmwar':22B 'full':50B 'holder':53B 'ident':80B 'implement':29B 'instead':47B 'libspdm':23B,26B 'link':43B 'may':74B 'name':71B 'one':42B 'packag':24B 'path':51B,69B 'present':63B 'protocol':37B 'sampl':28B 'spdm':25B,33B 'subordin':65B 'time':46B 'valid':38B,56B 'x.509':39B","search_c":"'3.8.3':94C,232C '4.0.0':96C,234C 'accept':161C,204C 'addit':178C 'allow':197C 'alon':200C 'applic':169C 'attack':138C 'backend':174C,208C 'ca':147C 'cannot':187C 'cert':101C 'certif':110C,152C,180C 'certificate-chain':179C 'chain':102C,181C,225C 'chang':227C 'check':221C 'complet':121C 'constrain':132C,146C 'credenti':143C 'deploy':125C,192C 'dmtf':89C 'enforc':212C 'exceed':154C 'exploit':166C 'follow':87C 'full':224C 'full-chain':223C 'hold':139C 'ident':164C,198C 'imperson':199C 'implement':85C,219C 'instead':117C 'issuer':142C 'libspdm':81C,98C,172C 'link':113C 'may':159C 'mbedtl':207C,216C 'measur':194C 'mechan':183C 'multi':134C 'multi-ti':133C 'must':196C 'nameconstraint':157C,213C 'one':112C 'os':104C,107C 'path':123C 'pathlenconstraint':155C 'pin':128C,185C 'pki':136C 'polici':195C 'present':149C 'prior':92C 'rc2':97C,235C 'releas':229C 'remain':209C 'requir':167C,205C 'root':129C,186C 'sampl':84C 'satisfi':202C 'signatur':111C 'spdm':90C,163C 'specif':91C 'stub/cryptlib_mbedtls/pk/x509.c':108C 'stub/cryptlib_openssl/pk/x509.c':105C 'subordin':151C 'substitut':189C 'tier':135C 'time':116C 'unabl':210C 'upstream':215C 'use':126C,171C 'valid':109C,119C,141C,165C,175C,182C,226C 'verifi':100C 'version':231C 'without':176C 'x.509':122C 'x509':99C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-09-29T07:51:49+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129306","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129306","severity":null,"published_at":"2026-11-16T18:17:31+00:00","modified_at":"2026-11-16T18:17:31+00:00","first_seen_at":"2026-11-16T18:38:03+00:00","fetched_at":"2026-11-16T18:38:03+00:00","note":null}],"documents":[{"id":171769,"url":"https://github.com/DMTF/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171770,"url":"https://github.com/DMTF/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171771,"url":"https://github.com/DMTF/libspdm/releases/tag/3.8.3","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":171772,"url":"https://github.com/DMTF/libspdm/releases/tag/4.0.0-rc2","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":171773,"url":"https://github.com/DMTF/libspdm/security/advisories/GHSA-7vfm-9mfh-j8p5","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-09-29T07:51:49+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}