Skip to content
Memory corruption Advisory Advanced CVE-2023-23416

Windows Cryptographic Services Remote Code Execution Vulnerability (CVE-2023-23416)

Windows Cryptographic Services mishandled the processing of imported certificates, allowing code to run on the affected machine. An attacker could upload a malicious certificate to a service that imports certificates, or persuade an authenticated user to import one, to achieve code execution.

Erik Egsgard Follow

Originally disclosed on Microsoft

Critical 7.8 View original

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.

FAQ

According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.

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

Root cause

Likely the certificate parsing code in Windows Cryptographic Services did not properly validate the contents of an imported certificate, leading to memory corruption.

Impact

An attacker who gets a malicious certificate imported could run arbitrary code on the affected system, though the attack itself is carried out locally rather than over the network.

What the attacker needed

Malicious certificate imported on target; service that imports certificates, or user tricked

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.

Certificates are small files used to prove identity and set up secure connections, and Windows has a built-in service that reads them. This report says that if a specially crafted certificate is loaded into that service, it can make the computer run the attacker's code. The attacker cannot do this from far away by itself; the bad certificate has to get onto the machine first, either through a service that accepts certificates or by tricking a logged-in user into importing it.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.