Windows Cryptographic Services Remote Code Execution Vulnerability (CVE-2024-30020)
Windows Cryptographic Services contained a remote code execution flaw that required a malicious certificate to be imported on the affected system. An attacker could upload such a certificate to a service that processes certificates, or convince an authenticated user to import it, and then execute code.
Originally disclosed on Microsoft
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? The attacker must inject themselves into the logical network path between the target and the resource requested by the victim to read or modify network communications. This is called a machine-in-the-middle (MITM) attack.
FAQ
How could an attacker exploit this vulnerability? For successful exploitation, a malicious certificate needs to be imported on an affected system. An attacker could upload a certificate to a service that processes or imports certificates, or an attacker could convince an authenticated user to import a certificate on their system.
Windows Cryptographic Services
Windows Cryptographic Services
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could achieve remote code execution, but only after a malicious certificate is imported, and the high attack complexity means they must also be positioned as a machine-in-the-middle.
What the attacker needed
Malicious certificate imported on target; attacker in network path (MITM)
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Windows Cryptographic Services is the part of Windows that handles certificates and encryption. This bug meant that if a specially crafted certificate was imported, an attacker could run their own code on the machine. The catch is that the attacker cannot do it alone: they need the certificate to be imported first, either through a service or by tricking a logged-in user.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.