libspdm: libspdm_x509_verify_cert_chain() does not verify CA nameConstraints / pathLenConstraint
CVE-2026-129306Published 16 Nov 2026, 17:59 UTC
Real-world risk
0.2/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| libspdmNiche | < 3.8.3; >= 4.0.0-rc1, < 4.0.0-rc2 | 3.8.3, 4.0.0-rc2 |
What to do
Update to a fixed version: 3.8.3, 4.0.0-rc2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 5), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.090
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.09 × threat 0.850.230
- Rounded to one decimal between 0.1 and 100.2
Exploitation and evidence timeline
- 16 Nov 2026 Published
- 3 Dec 2026 Risk 0.2 (cvss fallback)
Weakness
CWE-295
References
- https://github.com/DMTF/libspdm/security/advisories/GHSA-7vfm-9mfh-j8p5vendor-advisory
- https://github.com/DMTF/libspdm/pull/3902misc
- https://github.com/DMTF/libspdm/pull/3914misc
- https://github.com/DMTF/libspdm/commit/150bc5a7f9d1a04d86ba4f46c263b0ae7fe4a90fmisc
- https://github.com/DMTF/libspdm/commit/97097d2c9c59f768afaa6198b6176d53a451f4bcmisc
- https://github.com/DMTF/libspdm/releases/tag/3.8.3misc
- https://github.com/DMTF/libspdm/releases/tag/4.0.0-rc2misc
- CVE-2026-129306 on CVE.org