{"id":"CVE-2026-129306","summary":"libspdm: libspdm_x509_verify_cert_chain() does not verify CA nameConstraints / pathLenConstraint","details":"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.","aliases":["GHSA-7vfm-9mfh-j8p5"],"modified":"2026-11-17T07:04:47.324739631Z","published":"2026-11-16T17:59:44.830Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-295"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129306.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129306.json"},{"type":"FIX","url":"https://github.com/DMTF/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f"},{"type":"FIX","url":"https://github.com/DMTF/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc"},{"type":"FIX","url":"https://github.com/DMTF/libspdm/pull/3902"},{"type":"FIX","url":"https://github.com/DMTF/libspdm/pull/3914"},{"type":"WEB","url":"https://github.com/DMTF/libspdm/releases/tag/3.8.3"},{"type":"WEB","url":"https://github.com/DMTF/libspdm/releases/tag/4.0.0-rc2"},{"type":"ADVISORY","url":"https://github.com/DMTF/libspdm/security/advisories/GHSA-7vfm-9mfh-j8p5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129306"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dmtf/libspdm","events":[{"introduced":"0"},{"fixed":"98253fee253c9e0b4313e64b373af3c7614c90e5"},{"fixed":"a6994ee593343d93d9c9cc2166f25eaa76c01494"},{"fixed":"150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f"},{"fixed":"97097d2c9c59f768afaa6198b6176d53a451f4bc"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"3.8.3"}]},{"range":[{"introduced":"4.0.0-rc1"},{"fixed":"4.0.0-rc2"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"97097d2c9c59f768afaa6198b6176d53a451f4bc"}]},{"range":[{"fixed":"98253fee253c9e0b4313e64b373af3c7614c90e5"}],"source":"REFERENCES_TAG","original_tag":"3.8.3"},{"source":"REFERENCES_TAG","original_tag":"4.0.0-rc2","range":[{"fixed":"a6994ee593343d93d9c9cc2166f25eaa76c01494"}]}]}}],"versions":["3.8.2","4.0.0-rc","3.8.1","3.8.0","3.7.0","3.6.0","3.5.0","3.4.0","3.3.0","3.2.0","3.1.1","3.1.0","3.0.0","3.0.0-rc","2.3.0","2.2.0","2.1.0","2.0.0","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-129306.json","vanir_signatures":[{"target":{"file":"os_stub/cryptlib_mbedtls/pk/x509.c"},"deprecated":false,"digest":{"line_hashes":["64683771623492675634986910001666370229","89012401424072579386181844953354363237","276918916478355804596066058758069836915","73090490875008421945999169332992698256","223165555320678383797691495368528451342","40447737359926322990656038372213018674","27924897855786718681952621822505844379","247189699574754287811237778618114379288","306633627382127967861654202256538523073","47497481384309509219126207699368726655","177992695445481699396012244935065133345","237463675399685795547437237711999014397","251611820172177903974605454243269565459","306923414464144113101690421264772038025","105440711442483380672825760290795245423","164216036026371000276645940124549089467","93951719196706755617425045060783496449","95740434755744233722509267844907633178","96866722116730772230708098271673324790","199028804401638898009807403971855134727","82307824159878263646238347189289030254","73879478376858853094500706140219073859","334867586202154410737400544250877504042","125408054108124141769100126550028398473","323506784266648527065926011392156100960","121520428591752676966121126711209630497","276920677814175366042406711571553221108","190716637981433479747147483352255173927","202105117135024727425460455354226484720","219753854961433614400908359944278925690","251978881419114459760741938950891803854","75413972961235669521606731807599404861","241845278786978304055378222365357096273","266046073856714128974261541788616846605","320061961490099060600782980824206797842","293803233548709658382624506177281402389","241816698829247714834074533378839813779","223850224232483396649070346731753969449","255386171292198140009353669322327004372","11590228887131176086076994523682757349","261265101237502135440150810696164842705","147051463119324055110129817887695353302","251653817974488743922621650469144552509","234710882692304525450820911176708365284"],"threshold":0.9},"id":"CVE-2026-129306-0707f79c","signature_type":"Line","signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f"},{"source":"https://github.com/dmtf/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f","target":{"file":"os_stub/cryptlib_openssl/pk/x509.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["280883212934363287264707105674790018341","10762811460417546413910264412347296438","82938582795610361343757307378704045624","109616721606172767228913941483574439691","7048598204601387986224222242815714446","57326000549749051731311058091127711100","68281225727227754032957691071940171128","284359779228786417803178771815539055455","128756648728606162625906841688601260435","339785039247581936488724528759385164635","277916250289462942262750655315956962005","126296252855523145758254927055287999048","123992125681288600959791409647222139781","304450986339407473816454357240496243590","192655469891837001547527667944496728693","294956122080276768987161807771737287198","296954001659168697724556218533354606304","168784164071694495214139713049318806","74769175098317544643267054216254939835","85828414907319536783824612653103996817","76256457317630435265563593099498918136","301293295188060982332075381227684719723","287569953669455098053828832583339113041","234674135609192094479848153482211505895","241281787965685309173137341424955633937","77164111282618676751179002857940155938","214320669676253703135402603740736615528","646021500204501931405071889756055522","97865229951491833996682649290029770958","141045779457426526516259422750505767824","257993020331582054349048734075716935721","332324949175952547028395877307595073401","23250288905390238944002015463459628948","243086436221827741977912166554787606067","261755735144813840826307857840888787596","646021500204501931405071889756055522","5340465673668338726627830520733051205","240038405714537881656498401695253134898","175133721740188294920850485206546190256","56378950871906510091944349875533197598","21800319310373188059287866210909392835","194793759505610992298824221280897749021","298461620055953804008250493001036145239","204871572051294615822815490531935990850","190591768416580621883053010679716543525","91692822059422912752042075584961836099","285993396626343856968129087423116944450","216408606943148144076967038556501459036","123152814682049895463089405425386005081","285643396137447393947209678957038311653","291288586429329073636367651896297520347","272982642250279235332216564794123776891","73879478376858853094500706140219073859","334867586202154410737400544250877504042","238762098991659342271678348987441902313","74739138258228319493496751709200182203","227176672287876153202744423263863802291","198355389077126567116809311020124599269","190716637981433479747147483352255173927","41130934929719083111782778827385861636","43482842922613272957092338499613142304","19741317108705811333223732406396178097","148993088389489437053282352234927112340","159724583816553003979897100807348289634","201866439139786695063932362356284652013","203268545055778303834120336303483887084","32818005748519191190001096479336110660","48833509763275136124892666974749988906","230762402023358859588149543209631976556","171015415578684296861048337921005387755","144397882405281222914542759072884026804","312825676266139310417716128748824268666","234710882692304525450820911176708365284"]},"id":"CVE-2026-129306-49b4e609","signature_type":"Line","signature_version":"v1"},{"source":"https://github.com/dmtf/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f","target":{"file":"os_stub/cryptlib_openssl/pk/x509.c","function":"libspdm_x509_verify_cert_chain"},"deprecated":false,"digest":{"function_hash":"70700621750523369612469579276196207909","length":1386},"id":"CVE-2026-129306-4a6c2c94","signature_type":"Function","signature_version":"v1"},{"target":{"function":"libspdm_x509_verify_cert_chain","file":"os_stub/cryptlib_mbedtls/pk/x509.c"},"deprecated":false,"digest":{"function_hash":"82227668374741206794377398543937959185","length":765},"id":"CVE-2026-129306-6e53c9cd","signature_type":"Function","signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f"},{"id":"CVE-2026-129306-7b22b23b","signature_type":"Line","signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc","target":{"file":"os_stub/cryptlib_openssl/pk/x509.c"},"deprecated":false,"digest":{"line_hashes":["280883212934363287264707105674790018341","10762811460417546413910264412347296438","82938582795610361343757307378704045624","109616721606172767228913941483574439691","7048598204601387986224222242815714446","57326000549749051731311058091127711100","68281225727227754032957691071940171128","284359779228786417803178771815539055455","128756648728606162625906841688601260435","339785039247581936488724528759385164635","277916250289462942262750655315956962005","126296252855523145758254927055287999048","123992125681288600959791409647222139781","304450986339407473816454357240496243590","192655469891837001547527667944496728693","294956122080276768987161807771737287198","296954001659168697724556218533354606304","168784164071694495214139713049318806","74769175098317544643267054216254939835","85828414907319536783824612653103996817","76256457317630435265563593099498918136","301293295188060982332075381227684719723","287569953669455098053828832583339113041","234674135609192094479848153482211505895","241281787965685309173137341424955633937","77164111282618676751179002857940155938","214320669676253703135402603740736615528","646021500204501931405071889756055522","97865229951491833996682649290029770958","141045779457426526516259422750505767824","257993020331582054349048734075716935721","332324949175952547028395877307595073401","23250288905390238944002015463459628948","243086436221827741977912166554787606067","261755735144813840826307857840888787596","646021500204501931405071889756055522","5340465673668338726627830520733051205","240038405714537881656498401695253134898","175133721740188294920850485206546190256","56378950871906510091944349875533197598","21800319310373188059287866210909392835","194793759505610992298824221280897749021","298461620055953804008250493001036145239","204871572051294615822815490531935990850","190591768416580621883053010679716543525","91692822059422912752042075584961836099","285993396626343856968129087423116944450","216408606943148144076967038556501459036","123152814682049895463089405425386005081","285643396137447393947209678957038311653","291288586429329073636367651896297520347","272982642250279235332216564794123776891","73879478376858853094500706140219073859","334867586202154410737400544250877504042","238762098991659342271678348987441902313","74739138258228319493496751709200182203","227176672287876153202744423263863802291","198355389077126567116809311020124599269","190716637981433479747147483352255173927","41130934929719083111782778827385861636","43482842922613272957092338499613142304","19741317108705811333223732406396178097","148993088389489437053282352234927112340","159724583816553003979897100807348289634","201866439139786695063932362356284652013","203268545055778303834120336303483887084","32818005748519191190001096479336110660","48833509763275136124892666974749988906","230762402023358859588149543209631976556","171015415578684296861048337921005387755","144397882405281222914542759072884026804","312825676266139310417716128748824268666","234710882692304525450820911176708365284"],"threshold":0.9}},{"deprecated":false,"digest":{"line_hashes":["64683771623492675634986910001666370229","89012401424072579386181844953354363237","276918916478355804596066058758069836915","73090490875008421945999169332992698256","223165555320678383797691495368528451342","40447737359926322990656038372213018674","27924897855786718681952621822505844379","247189699574754287811237778618114379288","306633627382127967861654202256538523073","47497481384309509219126207699368726655","177992695445481699396012244935065133345","237463675399685795547437237711999014397","251611820172177903974605454243269565459","306923414464144113101690421264772038025","105440711442483380672825760290795245423","164216036026371000276645940124549089467","93951719196706755617425045060783496449","95740434755744233722509267844907633178","96866722116730772230708098271673324790","199028804401638898009807403971855134727","82307824159878263646238347189289030254","73879478376858853094500706140219073859","334867586202154410737400544250877504042","125408054108124141769100126550028398473","323506784266648527065926011392156100960","121520428591752676966121126711209630497","276920677814175366042406711571553221108","190716637981433479747147483352255173927","202105117135024727425460455354226484720","219753854961433614400908359944278925690","251978881419114459760741938950891803854","75413972961235669521606731807599404861","241845278786978304055378222365357096273","266046073856714128974261541788616846605","320061961490099060600782980824206797842","293803233548709658382624506177281402389","241816698829247714834074533378839813779","223850224232483396649070346731753969449","255386171292198140009353669322327004372","11590228887131176086076994523682757349","261265101237502135440150810696164842705","147051463119324055110129817887695353302","251653817974488743922621650469144552509","234710882692304525450820911176708365284"],"threshold":0.9},"id":"CVE-2026-129306-7d9653da","signature_type":"Line","signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc","target":{"file":"os_stub/cryptlib_mbedtls/pk/x509.c"}},{"deprecated":false,"digest":{"length":765,"function_hash":"82227668374741206794377398543937959185"},"id":"CVE-2026-129306-7fddef54","signature_type":"Function","signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc","target":{"file":"os_stub/cryptlib_mbedtls/pk/x509.c","function":"libspdm_x509_verify_cert_chain"}},{"signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc","target":{"file":"os_stub/cryptlib_openssl/pk/x509.c","function":"libspdm_x509_verify_cert_chain"},"deprecated":false,"digest":{"length":1386,"function_hash":"70700621750523369612469579276196207909"},"id":"CVE-2026-129306-b007f8fb","signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc","target":{"file":"os_stub/cryptlib_mbedtls/internal_crypt_lib.h"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["202435682931503836675706833111818129955","11363738730859379810972234169060848118","126069758398287662473100701085281933046","95494153246518447075255646230594431668"]},"id":"CVE-2026-129306-be25471c","signature_type":"Line"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/dmtf/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f","target":{"file":"os_stub/cryptlib_mbedtls/internal_crypt_lib.h"},"deprecated":false,"digest":{"line_hashes":["169205434615940737340032753569867328766","202435682931503836675706833111818129955","147082333898451798958937238241890799036","248952803713777014424482484292236154047","88393767217725068074221478360491152184"],"threshold":0.9},"id":"CVE-2026-129306-ed303816"}],"vanir_signatures_modified":"2026-11-17T07:04:47Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N"}]}