CVE-2024-12797RFC7250 handshakes with unauthenticated servers don't abort as expected
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, PyPI, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssl | Not affected vulnerable_code_not_present | ||
| Debian 14 | openssl | Fixed | 3.4.1-1 | DEBIAN-CVE-2024-12797 |
| Debian 13 | openssl | Fixed | 3.4.1-1 | DEBIAN-CVE-2024-12797 |
| Red Hat Enterprise Linux 10 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | flatpak-sdk-container | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | mokutil | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl | Fixed | 1:3.2.2-16.el10 | RHBA-2025:6314 |
| Red Hat Enterprise Linux 10 | openssl-devel | Fixed | 1:3.2.2-16.el10 | RHBA-2025:6314 |
| Red Hat Enterprise Linux 10 | openssl-libs | Fixed | 1:3.2.2-16.el10 | RHBA-2025:6314 |
| Red Hat Enterprise Linux 10 | openssl-perl | Fixed | 1:3.2.2-16.el10 | RHBA-2025:6314 |
| Red Hat Enterprise Linux 10 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | compat-openssl11 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.2.2-6.el9_5.1 | RHSA-2025:1330 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.2.2-6.el9_5.1 | RHSA-2025:1330 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.2.2-6.el9_5.1 | RHSA-2025:1330 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.2.2-6.el9_5.1 | RHSA-2025:1330 |
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw32-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw64-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 7 | ovmf | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Not affected | ||
| AlmaLinux 9 | openssl | Fixed | 1:3.2.2-6.el9_5.1 | ALSA-2025:1330 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.2.2-6.el9_5.1 | ALSA-2025:1330 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.2.2-6.el9_5.1 | ALSA-2025:1330 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.2.2-6.el9_5.1 | ALSA-2025:1330 |
| Rocky Linux 9 | openssl | Fixed | 1:3.2.2-6.el9_5.1 | RLSA-2025:1330 |
| Alpine Linux 3.24 | openssl | Fixed | 3.3.3-r0 | ALPINE-CVE-2024-12797 |
| Alpine Linux 3.23 | openssl | Fixed | 3.3.3-r0 | ALPINE-CVE-2024-12797 |
| Alpine Linux 3.22 | openssl | Fixed | 3.3.3-r0 | ALPINE-CVE-2024-12797 |
| Alpine Linux 3.21 | openssl | Fixed | 3.3.3-r0 | ALPINE-CVE-2024-12797 |
| Alpine Linux 3.20 | openssl | Fixed | 3.3.3-r0 | ALPINE-CVE-2024-12797 |
| PyPI library | cryptography | Fixed | 44.0.1 | PYSEC-2026-1284 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: 3.4.0 to before 3.4.1, 3.3.0 to before 3.3.3, 3.2.0 to before 3.2.4; fixed in
3.4.1,3.3.3,3.2.4
Vendor advisories:
- https://openssl-library.org/news/secadv/20250211.txt (vendor-advisory)
- https://github.com/openssl/openssl/commit/738d4f9fdeaad57660dcba50a619fafced3fd5e9 (patch)
- https://github.com/openssl/openssl/commit/87ebd203feffcf92ad5889df92f90bb0ee10a699 (patch)
- https://github.com/openssl/openssl/commit/798779d43494549b611233f92652f0da5328fbe7 (patch)
References
- https://openssl-library.org/news/secadv/20250211.txt
- https://github.com/openssl/openssl/commit/738d4f9fdeaad57660dcba50a619fafced3fd5e9
- https://github.com/openssl/openssl/commit/87ebd203feffcf92ad5889df92f90bb0ee10a699
- https://github.com/openssl/openssl/commit/798779d43494549b611233f92652f0da5328fbe7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.