CVEfocus › CVE database › CVE-2024-12797

CVE-2024-12797RFC7250 handshakes with unauthenticated servers don't abort as expected

CVSS 7.4 HighEPSS 1.3% (higher than 71% of CVEs)Published 2025-02-11Updated 2026-11-06Assigner: openssl

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.

CWE-392

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

21Fixed
1Fix pending
53Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04edk2Not affected
vulnerable_code_not_present
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04opensslNot affected
vulnerable_code_not_present
Ubuntu 22.04edk2Not affected
vulnerable_code_not_present
Ubuntu 22.04opensslNot affected
vulnerable_code_not_present
Debian 14opensslFixed3.4.1-1DEBIAN-CVE-2024-12797
Debian 13opensslFixed3.4.1-1DEBIAN-CVE-2024-12797
Red Hat Enterprise Linux 10edk2Not affected
Red Hat Enterprise Linux 10edk2-aarch64Not affected
Red Hat Enterprise Linux 10edk2-ovmfNot affected
Red Hat Enterprise Linux 10edk2-toolsNot affected
Red Hat Enterprise Linux 10edk2-tools-docNot affected
Red Hat Enterprise Linux 10flatpak-sdk-containerFix pending
Affected
Red Hat Enterprise Linux 10mokutilNot affected
Red Hat Enterprise Linux 10opensslFixed1:3.2.2-16.el10RHBA-2025:6314
Red Hat Enterprise Linux 10openssl-develFixed1:3.2.2-16.el10RHBA-2025:6314
Red Hat Enterprise Linux 10openssl-libsFixed1:3.2.2-16.el10RHBA-2025:6314
Red Hat Enterprise Linux 10openssl-perlFixed1:3.2.2-16.el10RHBA-2025:6314
Red Hat Enterprise Linux 10shim-aa64Not affected
Red Hat Enterprise Linux 10shim-x64Not affected
Red Hat Enterprise Linux 9compat-openssl11Not affected
Red Hat Enterprise Linux 9edk2Not affected
Red Hat Enterprise Linux 9edk2-aarch64Not affected
Red Hat Enterprise Linux 9edk2-ovmfNot affected
Red Hat Enterprise Linux 9edk2-toolsNot affected
Red Hat Enterprise Linux 9edk2-tools-docNot affected
Red Hat Enterprise Linux 9opensslFixed1:3.2.2-6.el9_5.1RHSA-2025:1330
Red Hat Enterprise Linux 9openssl-develFixed1:3.2.2-6.el9_5.1RHSA-2025:1330
Red Hat Enterprise Linux 9openssl-libsFixed1:3.2.2-6.el9_5.1RHSA-2025:1330
Red Hat Enterprise Linux 9openssl-perlFixed1:3.2.2-6.el9_5.1RHSA-2025:1330
Red Hat Enterprise Linux 9shimNot affected
Red Hat Enterprise Linux 9shim-aa64Not affected
Red Hat Enterprise Linux 9shim-unsigned-aarch64Not affected
Red Hat Enterprise Linux 9shim-unsigned-x64Not affected
Red Hat Enterprise Linux 9shim-x64Not affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8edk2Not affected
Red Hat Enterprise Linux 8edk2-aarch64Not affected
Red Hat Enterprise Linux 8edk2-ovmfNot affected
Red Hat Enterprise Linux 8mingw-opensslNot affected
Red Hat Enterprise Linux 8mingw32-opensslNot affected
Red Hat Enterprise Linux 8mingw64-opensslNot affected
Red Hat Enterprise Linux 8opensslNot affected
Red Hat Enterprise Linux 8openssl-develNot affected
Red Hat Enterprise Linux 8openssl-libsNot affected
Red Hat Enterprise Linux 8openssl-perlNot affected
Red Hat Enterprise Linux 8openssl-staticNot affected
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 8shim-aa64Not affected
Red Hat Enterprise Linux 8shim-ia32Not affected
Red Hat Enterprise Linux 8shim-unsigned-x64Not affected
Red Hat Enterprise Linux 8shim-x64Not affected
Red Hat Enterprise Linux 7AAVMFNot affected
Red Hat Enterprise Linux 7OVMFNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7openssl-develNot affected
Red Hat Enterprise Linux 7openssl-libsNot affected
Red Hat Enterprise Linux 7openssl-perlNot affected
Red Hat Enterprise Linux 7openssl-staticNot affected
Red Hat Enterprise Linux 7ovmfNot affected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 6openssl-develNot affected
Red Hat Enterprise Linux 6openssl-perlNot affected
Red Hat Enterprise Linux 6openssl-staticNot affected
AlmaLinux 9opensslFixed1:3.2.2-6.el9_5.1ALSA-2025:1330
AlmaLinux 9openssl-develFixed1:3.2.2-6.el9_5.1ALSA-2025:1330
AlmaLinux 9openssl-libsFixed1:3.2.2-6.el9_5.1ALSA-2025:1330
AlmaLinux 9openssl-perlFixed1:3.2.2-6.el9_5.1ALSA-2025:1330
Rocky Linux 9opensslFixed1:3.2.2-6.el9_5.1RLSA-2025:1330
Alpine Linux 3.24opensslFixed3.3.3-r0ALPINE-CVE-2024-12797
Alpine Linux 3.23opensslFixed3.3.3-r0ALPINE-CVE-2024-12797
Alpine Linux 3.22opensslFixed3.3.3-r0ALPINE-CVE-2024-12797
Alpine Linux 3.21opensslFixed3.3.3-r0ALPINE-CVE-2024-12797
Alpine Linux 3.20opensslFixed3.3.3-r0ALPINE-CVE-2024-12797
PyPI librarycryptographyFixed44.0.1PYSEC-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.

Vendor advisories:

References

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.