Skip to content

DMTF-2026-0004: libspdm_x509_verify_cert_chain() does not verify CA nameConstraints / pathLenConstraint

Moderate
jyao1 published GHSA-7vfm-9mfh-j8p5 Sep 29, 2026

Package

libspdm

Affected versions

all versions up to 3.8.2

Patched versions

3.8.3 and 4.0

Description

Summary

The libspdm crypto backend function libspdm_x509_verify_cert_chain() only verifies the link of the certificate chain (digital signature).
See https://github.com/DMTF/libspdm/blob/main/os_stub/cryptlib_openssl/pk/x509.c, and https://github.com/DMTF/libspdm/blob/main/os_stub/cryptlib_mbedtls/pk/x509.c.

However, the openssl and mbedtls backend function does not verify CA nameConstraints / pathLenConstraint according to RFC 5280 §6.1 path validation.

Impact

When perform the SPDM certificate chain validation, the libspdm requester only validates the digital signature of the certificate chain, but CA nameConstraints / pathLenConstraint are ignored and not validated.

Scope is limited because: it requires (a) a name/path-constrained multi-tier PKI under the pinned root, (b) an attacker with a valid issuer credential under the constrained node, (c) a measurement policy that identity impersonation alone satisfies.
The root is out-of-band provisioned and byte-pinned, so there is no root-substitution bypass; this issue only lets a certificate already subordinate to the trusted root exceed its constraints.

Configuration

This issue only impacts if the integrate uses the libspdm provided openssl or mbedtls as crypto-backend, and the integrate leverages the libspdm to perform the SPDM certificate chain validation and does not have any other mechanism to perform the SPDM certificate chain validation.

Patches

The fix is to replace link-by-link verification with one full-chain validation so the backend enforces pathlen / name / policy constraints across the whole path.

NOTE: One limitation we notice is that mbedtls does not enforce the nameConstraints (Mbed-TLS/mbedtls#8759). As such, mbedtls path is not fully mitigated. libspdm will leave it to mbedtls community, since it is a known issue since 2024. Once mbedtls resolves then we will update libspdm to close the gap.

libspdm 4.0.0: #3902
libspdm 3.8.3: #3914

References

Reference: https://datatracker.ietf.org/doc/html/rfc5280#section-6.1

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
High
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

CVE ID

No known CVE

Weaknesses

Improper Certificate Validation

The product does not validate, or incorrectly validates, a certificate. Learn more on MITRE.

Credits