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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.31% (percentile 71, 2026-11-26)
- **CWE:** CWE-392
- **Aliases:** GHSA-79v4-65xg-pq4g, PYSEC-2026-1284
- **Published:** 2025-02-11T15:59:36.719Z
- **Modified:** 2026-11-06T22:18:41.713Z

## Who should check

- Projects that depend on PyPI package cryptography (\>= 42.0.0, \< 44.0.1)
- Anyone running OpenSSL \>= 3.4.0, \< 3.4.1; \>= 3.3.0, \< 3.3.3; \>= 3.2.0, \< 3.2.4

## 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.

## Affected and fixed versions

- PyPI `cryptography`: affected \>= 42.0.0, \< 44.0.1; fixed 44.0.1 (osv)
- OpenSSL: \>= 3.4.0, \< 3.4.1; \>= 3.3.0, \< 3.3.3; \>= 3.2.0, \< 3.2.4 (cvelist)

## Mitigation

- Upgrade cryptography to 44.0.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-12797. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-12797.md
Affected: cryptography >= 42.0.0, < 44.0.1
Fixed in: 44.0.1

Steps:
1. Search this machine and project for cryptography (PyPI), OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-12797 being exploited?

There is no confirmed exploitation: CVE-2024-12797 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-12797?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-12797?

cryptography \>= 42.0.0, \< 44.0.1.

### Is there a fix for CVE-2024-12797?

Yes. Fixed in 44.0.1. Upgrade cryptography to 44.0.1 or later.

### How do I check if I'm affected by CVE-2024-12797?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://openssl-library.org/news/secadv/20250211.txt>
- vendor: <https://github.com/pyca/cryptography/security/advisories/GHSA-79v4-65xg-pq4g>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-12797>
- vendor: <https://github.com/advisories/GHSA-79v4-65xg-pq4g>
- patch: <https://github.com/openssl/openssl/commit/738d4f9fdeaad57660dcba50a619fafced3fd5e9>
- patch: <https://github.com/openssl/openssl/commit/87ebd203feffcf92ad5889df92f90bb0ee10a699>
- patch: <https://github.com/openssl/openssl/commit/798779d43494549b611233f92652f0da5328fbe7>
- other: <http://www.openwall.com/lists/oss-security/2025/02/11/3>
- other: <http://www.openwall.com/lists/oss-security/2025/02/11/4>
- other: <https://security.netapp.com/advisory/ntap-20250214-0001/>
- other: <https://github.com/pyca/cryptography>
- other: <https://pypi.org/project/cryptography>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-12797>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-79v4-65xg-pq4g> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1284> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-12797> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-12797>
