CVE-2024-12797
Issue summary: Clients using RFC7250 Raw Public Keys (RPKs) to authenticate a server may fail to notice that the server was not authenticated, because handshakes don't abort as expected when the SSL_VERIFY_PEER verification mode is set. Impact summary: TLS and DTLS connections using raw public keys may be vulnerable to man-in-middle attacks when server authentication failure is not detected by clients. RPKs are disabled by default in both TLS clients and TLS servers. The issue only arises when TLS clients explicitly enable RPK use by the server, and the server, likewise, enables sending of an RPK instead of an X.509 certificate chain. The affected clients are those that then rely on the handshake to fail when the server's RPK fails to match one of the expected public keys, by setting the verification mode to SSL_VERIFY_PEER. Clients that enable server-side raw public keys can still find out that raw public key verification failed by calling SSL_get_verify_result(), and those that do, and take appropriate action, are not affected. This issue was introduced in the initial implementation of RPK support in OpenSSL 3.2. The FIPS modules in 3.4, 3.3, 3.2, 3.1 and 3.0 are not affected by this issue.
Scoring
- CVSS base score
- 0
- EPSS probability
- 2.53%
- CWE
- CWE-392
- Published
- 2025-02-11
- Last modified
- 2026-03-13
Affected products
- OpenSSL OpenSSL
- OpenSSL OpenSSL
- OpenSSL OpenSSL
Weakness type
Related vulnerabilities
- CVE-2026-42246 — net-imap vulnerable to STARTTLS stripping via invalid response timing
- CVE-2026-20005 — Multiple Cisco products are affected by a vulnerability in the Snort 3 Detection Engine that could...
- CVE-2025-59398 — The OCPP implementation in libocpp before 0.26.2 allows a denial of service (EVerest crash) via...
- CVE-2025-23270 — NVIDIA Jetson Linux contains a vulnerability in UEFI Management mode, where an unprivileged local...
- CVE-2025-26268 — DragonflyDB Dragonfly before 1.27.0 allows authenticated users to cause a denial of service (daemon...
- CVE-2025-32743 — In ConnMan through 1.44, the lookup string in ns_resolv in dnsproxy.c can be NULL or an empty...
- CVE-2024-39697 — phonenumber panics on parsing crafted phonenumber inputs
- CVE-2023-48430 — A vulnerability has been identified in SINEC INS (All versions < V1.0 SP2 Update 2). The REST API...