CVE Radar Logo
CVERadar
CVE Radar Logo
CVERadar

CVE-2024-26130

Medium Severity
Cryptography.io
SVRS
30/100

CVSSv3
7.5/10

EPSS
0.00257/1

CVE-2024-26130 is a critical vulnerability in the cryptography Python package that can lead to a denial-of-service. Specifically, versions 38.0.0 through 42.0.3 crash when pkcs12.serialize_key_and_certificates is misused with mismatched keys and HMAC hashing. The fix, implemented in version 42.0.4, raises a ValueError instead of crashing. While the CVSS score is 7.5 (High), the SOCRadar Vulnerability Risk Score (SVRS) of 30 suggests a lower level of immediate risk despite the 'In The Wild' tag. However, organizations using affected versions should still prioritize updating to version 42.0.4 or later to prevent potential NULL pointer dereference crashes. Failure to patch leaves systems vulnerable to unexpected downtime and impacts on application availability. This vulnerability highlights the importance of proper key handling and rigorous testing in cryptographic libraries.

In The Wild
CVSS:3.1
AV:N
AC:L
PR:N
UI:N
S:U
C:N
I:N
A:H
2024-02-21

2025-02-05
Eye Icon
SOCRadar
AI Insight

Description:

CVE-2024-26130 is a vulnerability in the cryptography package for Python. It allows an attacker to cause a NULL pointer dereference and crash the Python process by calling pkcs12.serialize_key_and_certificates with a certificate whose public key does not match the provided private key and an encryption_algorithm with hmac_hash set.

Key Insights:

  • The SVRS of 30 indicates a moderate risk, but the vulnerability is actively exploited in the wild, making it a critical threat.
  • The vulnerability can be exploited by attackers to crash Python processes, potentially leading to denial-of-service attacks.
  • The vulnerability affects all versions of cryptography prior to 42.0.4.

Mitigation Strategies:

  • Update to cryptography version 42.0.4 or later.
  • Avoid using pkcs12.serialize_key_and_certificates with a certificate whose public key does not match the provided private key and an encryption_algorithm with hmac_hash set.
  • Use a vulnerability scanner to identify and patch vulnerable systems.

Additional Information:

  • The Cybersecurity and Infrastructure Security Agency (CISA) has warned of the vulnerability, calling for immediate and necessary measures.
  • Threat actors or APT groups are actively exploiting the vulnerability.
  • If users have additional queries regarding this incident, they can use the 'Ask to Analyst' feature, contact SOCRadar directly, or open a support ticket for more information if necessary.

Indicators of Compromise

No IOCs found for this CVE

Exploits

No exploits found for this CVE

Enhance Your CVE Management with SOCRadar Vulnerability Intelligence
Get comprehensive CVE details, real-time notifications, and proactive threat management all in one platform.
CVE Details
Access comprehensive CVE information instantly
Real-time Tracking
Subscribe to CVEs and get instant updates
Exploit Analysis
Monitor related APT groups and threats
IOC Tracking
Analyze and track CVE-related IOCs

News

CVE-2024-26130 | pyca cryptography up to 42.0.3 PrivateFormat.PKCS12.encryption_builder.hmac_hash null pointer dereference (Nessus ID 208713)
vuldb.com2025-02-06
CVE-2024-26130 | pyca cryptography up to 42.0.3 PrivateFormat.PKCS12.encryption_builder.hmac_hash null pointer dereference (Nessus ID 208713) | A vulnerability has been found in pyca cryptography up to 42.0.3 and classified as problematic. Affected by this vulnerability is the function PrivateFormat.PKCS12.encryption_builder.hmac_hash. The manipulation leads to null pointer dereference. This vulnerability is known as CVE-2024-26130. The attack can be launched remotely. There is no
vuldb.com
rss
forum
news
USN-6673-3: python-cryptography vulnerability
2024-05-27
USN-6673-3: python-cryptography vulnerability | USN-6673-1 provided a security update for python-cryptography. This update provides the corresponding update for Ubuntu 24.04 LTS. Original advisory details: It was discovered that python-cryptography incorrectly handled memory operations when processing mismatched PKCS#12 keys. A remote attacker could possibly use this issue to cause python-cryptography to crash, leading to a denial of service. This issue only affected Ubuntu 23.10. (CVE-2024-26130)
ubuntu.com
rss
forum
news

Social Media

No tweets found for this CVE

Affected Software

Configuration 1
TypeVendorProduct
AppCryptography.iocryptography

References

ReferenceLink
[email protected]https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55
[email protected]https://github.com/pyca/cryptography/pull/10423
[email protected]https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4
AF854A3A-2127-422B-91AE-364DA2661108https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55
AF854A3A-2127-422B-91AE-364DA2661108https://github.com/pyca/cryptography/pull/10423
AF854A3A-2127-422B-91AE-364DA2661108https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4
[email protected]https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55
[email protected]https://github.com/pyca/cryptography/pull/10423
[email protected]https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4

CWE Details

CWE IDCWE NameDescription
CWE-476NULL Pointer DereferenceA NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.

CVE Radar

Real-time CVE Intelligence & Vulnerability Management Platform

CVE Radar provides comprehensive vulnerability intelligence by monitoring CVE databases, security advisories, and threat feeds. Get instant updates on new vulnerabilities, exploit details, and mitigation strategies specific to your assets.

Get Free Vulnerability Intelligence AccessAccess real-time CVE monitoring, exploit analysis, and threat intelligence