CVE-2023-31127

Source
https://cve.org/CVERecord?id=CVE-2023-31127
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-31127.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-31127
Aliases
  • GHSA-qw76-4v8p-xq9f
Published
2023-05-08T20:05:29.675Z
Modified
2025-11-29T14:14:19.459422Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
DMTF-2023-0001: SPDM mutual authentication bypass
Details

libspdm is a sample implementation that follows the DMTF SPDM specifications. A vulnerability has been identified in SPDM session establishment in libspdm prior to version 2.3.1. If a device supports both DHE session and PSK session with mutual authentication, the attacker may be able to establish the session with KEY_EXCHANGE and PSK_FINISH to bypass the mutual authentication. This is most likely to happen when the Requester begins a session using one method (DHE, for example) and then uses the other method's finish (PSK_FINISH in this example) to establish the session. The session hashes would be expected to fail in this case, but the condition was not detected.

This issue only impacts the SPDM responder, which supports KEY_EX_CAP=1 andPSKCAP=10bat same time with mutual authentication requirement. The SPDM requester is not impacted. The SPDM responder is not impacted ifKEYEXCAP=0orPSKCAP=0orPSK_CAP=01b`. The SPDM responder is not impacted if mutual authentication is not required.

libspdm 1.0, 2.0, 2.1, 2.2, 2.3 are all impacted. Older branches are not maintained, but users of the 2.3 branch may receive a patch in version 2.3.2. The SPDM specification (DSP0274) does not contain this vulnerability.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-287",
        "CWE-372"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31127.json"
}
References

Affected packages

Git / github.com/dmtf/libspdm

Affected ranges

Type
GIT
Repo
https://github.com/dmtf/libspdm
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*
1.0.0
2.*
2.0.0
2.1.0
2.2.0
2.3.0
2.3.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-31127.json"