home / blog

2026-11-27 · high

CVE-2020-9402: SQL Injection Vulnerability in Django on Oracle Database

SQL Injection in Django through GIS parameters on Oracle. Severe vulnerability with CVSS 8.8.

CVE-2020-9402: SQL Injection Vulnerability in Django on Oracle Database

CVE-2020-9402 is a SQL Injection vulnerability in Django that occurs when untrusted data is used as a tolerance parameter in GIS functions and aggregates on Oracle database. An attacker can manipulate this parameter to bypass the escaping mechanism and inject malicious SQL, potentially compromising data integrity and confidentiality.

The vulnerability has a CVSS score of 8.8, classifying it as high severity. It was officially published on March 5, 2020, and patches have been released in the corresponding framework versions. Recent signals confirm the existence of repositories that claim to contain exploits for this vulnerability.

In defense, administrators should immediately apply patches by updating Django to version 1.11.29, 2.2.11, or 3.0.4 depending on the version in use. For instances that cannot be updated immediately, it is recommended to disable GIS functionality or implement strict input validation for tolerance parameters.

At a glance

What
SQL Injection in Django through tolerance parameters in GIS functions and aggregates when used on Oracle database
Severity
CVSS 8.8 (High)
Affected versions
Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4
Fix
Update to versions 1.11.29, 2.2.11 and 3.0.4
Status
Published on 2020-03-05, patches released
Action
Immediately apply patches to affected versions

Sources: NVD, CVE-2020-9402

← All articles