CVE-2024-12797
openssl: RFC7250 handshakes with unauthenticated servers don't abort as expected
Overview
Description
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.
Source: OX vulnerability database
Severity
7.4 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness: CWE-392
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | cryptography | >=42.0.0, <44.0.1 | 44.0.1 |
| Seal PyPI | cryptography | >=42.0.8+sp0, <42.0.8+sp999 | 42.0.8+sp999 |
| Seal PyPI | seal-cryptography | >=42.0.8+sp1, <42.0.8+sp999 | 42.0.8+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 59 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | openssl | 0:3.3.3-1.azl3 |
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.2.2-6.0.1.el9_5.1 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 9 | openssl +3 | 1:3.2.2-6.el9_5.1 | RHSA-2025:1330 |
SUSE Linux Enterprise 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.7 | nodejs24 +3 | 24.18.1-150700.15.18.1 | SUSE-SU-2026:3835-1 |
| 15.7 | libopenssl-3-devel +5 | 3.2.3-150700.5.5.1 | SUSE-SU-2025:02042-1 |
| 15.7 | libopenssl-devel +2 | 3.5.0-150700.3.4.1 | SUSE-SU-2026:3835-1 |
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.2.2-6.el9_5.1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | 3.3.3-r0 |
| 3.23 | openssl | 3.3.3-r0 |
| 3.24 | openssl | 3.3.3-r0 |
| edge | openssl | 3.3.3-r0 |
chainguard 1 release · 21 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-provider-fips +2 | not affected | |
| kserve | 0.14.1-r3 | |
| request-1276 | 0.23.0-r1 | |
| py3-cassandra-medusa | 0.23.0-r2 | |
| reflex | 0.7.1-r0 | |
| ggshield | 1.37.0-r0 |
15 more rows
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | openssl | 3.4.1-1 |
| 14 | openssl | 3.4.1-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.4.1-1 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.4.1-r0 | |
| py3-cryptography | 44.0.1-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-3-devel +9 | 3.2.4-1.1 | openSUSE-SU-2025:14802-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.2.2-6.el9_5.1 |
root.io alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | rootio-openssl | 3.3.3-r0 |
seal Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 7 | openssl +1 | 1:1.0.2k-26.el7_9+sp999 |
| 8 | openssl +1 | 1:1.1.1k-14.el8_6+sp999 |
| 8 | openssl +1 | 1:1.1.1k-6.el8_5+sp999 |
| 9 | openssl +1 | 1:3.2.2-6.el9_5+sp2 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 1.1.1w-0+deb11u2+sp999 | |
| openssl +1 | 3.0.11-1~deb12u2+sp999 | |
| openssl +1 | 3.0.16-1~deb12u1+sp999 |
wolfi 1 release · 11 packages
| Release | Package | Fixed in |
|---|---|---|
| kserve | 0.14.1-r3 | |
| py3-cassandra-medusa | 0.23.0-r2 | |
| reflex | 0.7.1-r0 | |
| ggshield | 1.37.0-r0 | |
| airflow | 2.10.5-r1 | |
| kubeflow-pipelines-visualization-server | 2.4.0-r1 |
5 more rows
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2025/02/11/3
- www.openwall.com http://www.openwall.com/lists/oss-security/2025/02/11/4
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:1330
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-12797
- bugzilla.redhat.com https://bugzilla.redhat.com/2342757
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2342757
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-12797
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-1330.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:1330
Show all 22 references
- github.com https://github.com/openssl/openssl/commit/738d4f9fdeaad57660dcba50a619fafced3fd5e9
- github.com https://github.com/openssl/openssl/commit/798779d43494549b611233f92652f0da5328fbe7
- github.com https://github.com/openssl/openssl/commit/87ebd203feffcf92ad5889df92f90bb0ee10a699
- github.com https://github.com/pyca/cryptography
- github.com https://github.com/pyca/cryptography/security/advisories/GHSA-79v4-65xg-pq4g
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-12797.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-1330.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-12797
- openssl-library.org https://openssl-library.org/news/secadv/20250211.txt
- security.netapp.com https://security.netapp.com/advisory/ntap-20250214-0001/
- ubuntu.com https://ubuntu.com/security/notices/USN-7264-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-12797
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.