Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-12797

HIGH 7.4EPSS 71%

RFC7250 handshakes with unauthenticated servers don't abort as expected

Also known as GHSA-79v4-65xg-pq4g, PYSEC-2026-1284

Mitigation

  • Upgrade cryptography to 44.0.1 or later.

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

Vulnerability facts

Affected
cryptography >= 42.0.0, < 44.0.1
Fixed in
44.0.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
1.31% chance of exploitation in 30 days (percentile 71, 2026-11-26)
CWE
CWE-392
Published
Modified

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

Package / productAffectedFixedSource
PyPI cryptography>= 42.0.0, < 44.0.144.0.1osv
OpenSSL>= 3.4.0, < 3.4.1; >= 3.3.0, < 3.3.3; >= 3.2.0, < 3.2.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors