Skip to content
RCE Advisory Advanced CVE-2021-28455

Microsoft Jet Red Database Engine and Access Connectivity Engine Remote Code Execution Vulnerability (CVE-2021-28455)

The Jet Red Database Engine and Access Connectivity Engine allowed SQL queries to reach remote databases, so an attacker who could supply ad hoc SQL or exploit a SQL injection flaw could point queries at an external database and trigger remote code execution. Microsoft's fix lets administrators block access to remote databases through configuration.

Tao Yan Follow

Originally disclosed on Microsoft

High 8.8 View original

FAQ

Is the Preview Pane an attack vector for this vulnerability? No, the Preview Pane is not an attack vector.

FAQ

How do the security updates address this vulnerability? The security updates address the vulnerability by providing the ability to configure the Jet Red Database Engine or Access Connectivity Engine to block access to remote databases. You might need to do this when you allow unprivileged users to run custom SQL queries in JET or ACE. See KB5002984: Configuring Jet Red Database Engine and Access Connectivity Engine to block access to remote databases for more information. If I do not disable these SQL queries, is there any other way I can be protected from this vulnerability? No. Allowing ‘External database queries’ can expose you to security risks if you accept adhoc SQL queries or have a SQL injection flaw in your system which could allow an unknown user to specify ‘external databases’ – this could open you to a possible security exploit. If you understand the risks and are confident you do not have a SQL adhoc/injection flaw you could consider not disabling this feature. If after disabling the registry values as listed in KB5002984 you choose to re-enable them, it might make your device vulnerable to attack by a malicious user or malicious software. We do not recommend that you re-enable these registry values but are providing this information so that you can choose to implement this at your own discretion. Use this at your own risk.

Jet Red and Access Connectivity

Jet Red and Access Connectivity

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Tao Yan ( @Ga1ois ) from Palo Alto Networks. 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 engine permitted SQL queries to reference external, remote databases without restriction, so untrusted query input could direct the engine to attacker-controlled data sources.

Impact

An attacker able to supply ad hoc SQL or exploit a SQL injection flaw could use external database queries to achieve remote code execution; the text notes the Preview Pane is not an attack vector and that only blocking remote database access removes the risk.

What the attacker needed

Ability to supply ad hoc SQL; or a SQL injection flaw in the system

The fix

The security updates were fixed by adding the ability to configure the engine to block access to remote databases, as described in the linked knowledge base article.

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.

This is a database component built into Windows that can be told to fetch data from another machine over the network. If a program lets outsiders influence the SQL it runs, they could make it talk to a database they control and abuse that to run their own code. The update adds a setting that stops the component from reaching out to remote databases at all.

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 Tao Yan

View all

6 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.