CVE-2024-26164 Microsoft Django Backend for SQL Server Remote Code Execution Vulnerability

High 8.8 Published Updated

Attackers can execute arbitrary code via the Microsoft Django Backend for SQL Server, requiring immediate patching by developers using this library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-26164?

CVE-2024-26164 is a high-severity code injection vulnerability in Microsoft SQL Server backend for Django, published on 12 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Microsoft Django Backend for SQL Server Remote Code Execution Vulnerability

Weakness: CWE-20

Which versions are affected by CVE-2024-26164?

3 open source packages ship an affected version, including mssql-django. It affects 1 product.

PackageAffectedFixed in
mssql-django PyPIAll versions1.4.1
mssql-django PyPIAll versions1.4.1
mssql-django PyPIAll versions1.4.1

Products include Microsoft Django Backend.

How do I fix CVE-2024-26164?

Upgrade mssql-django to 1.4.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-26164 being exploited?

There is no known exploitation of CVE-2024-26164 in the wild and no public exploit code.

Sources

Also known as GHSA-vmqv-47j8-gwv8, PYSEC-2026-1684.

Is CVE-2024-26164 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free