# CVE-2026-129306: libspdm: libspdm\_x509\_verify\_cert\_chain() does not verify CA nameConstraints / pathLenConstraint

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **CWE:** CWE-295
- **Published:** 2026-11-16T17:59:44.830Z
- **Modified:** 2026-11-16T19:17:40.737Z

## Who should check

- Anyone running DMTF libspdm \< 3.8.3; \>= 4.0.0-rc1, \< 4.0.0-rc2

## 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.

## Affected and fixed versions

- DMTF libspdm: \< 3.8.3; \>= 4.0.0-rc1, \< 4.0.0-rc2 (cvelist)

## Mitigation

- Upgrade libspdm to 4.0.0-rc2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-129306. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-129306.md
Affected: DMTF libspdm < 3.8.3; >= 4.0.0-rc1, < 4.0.0-rc2
Fixed in: DMTF libspdm 3.8.3, DMTF libspdm 4.0.0-rc2

Steps:
1. Search this machine and project for DMTF libspdm: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-129306 being exploited?

There is no confirmed exploitation: CVE-2026-129306 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-129306?

Medium: CVSS 4.4 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-129306?

DMTF libspdm \< 3.8.3; \>= 4.0.0-rc1, \< 4.0.0-rc2.

### Is there a fix for CVE-2026-129306?

Yes. Fixed in DMTF libspdm 3.8.3, DMTF libspdm 4.0.0-rc2. Upgrade libspdm to 4.0.0-rc2 or later.

### How do I check if I'm affected by CVE-2026-129306?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/DMTF/libspdm/security/advisories/GHSA-7vfm-9mfh-j8p5>
- patch: <https://github.com/DMTF/libspdm/pull/3902>
- patch: <https://github.com/DMTF/libspdm/pull/3914>
- patch: <https://github.com/DMTF/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90f>
- patch: <https://github.com/DMTF/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bc>
- other: <https://github.com/DMTF/libspdm/releases/tag/3.8.3>
- other: <https://github.com/DMTF/libspdm/releases/tag/4.0.0-rc2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-129306>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-129306> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-129306>
