CWE
287 372
Advisory Published
Updated

CVE-2023-31127: DMTF-2023-0001: SPDM mutual authentication bypass

First published: Mon May 08 2023(Updated: )

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 and `PSK_CAP=10b` at same time with mutual authentication requirement. The SPDM requester is not impacted. The SPDM responder is not impacted if `KEY_EX_CAP=0` or `PSK_CAP=0` or `PSK_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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
DMTF Libspdm<2.3.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2023-31127?

    The severity of CVE-2023-31127 is classified as high due to its potential for exploitation if both DHE and PSK sessions are supported.

  • How do I fix CVE-2023-31127?

    To fix CVE-2023-31127, upgrade libspdm to version 2.3.1 or later.

  • What products are affected by CVE-2023-31127?

    CVE-2023-31127 affects libspdm versions prior to 2.3.1.

  • What is the primary impact of CVE-2023-31127?

    The primary impact of CVE-2023-31127 is the potential unauthorized access due to flaws in the SPDM session establishment process.

  • Is there a known exploit for CVE-2023-31127?

    As of now, there are no publicly reported exploits specifically targeting CVE-2023-31127.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203