Skip to content
RCE Advisory Advanced CVE-2024-30020

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.

Erik Egsgard Follow

Originally disclosed on Microsoft

High 8.1 View original

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

The original report as published on the Microsoft Security Response Center, by Erik Egsgard with Field Effect Software. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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.

More by Erik Egsgard

View all

9 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.