Advisory

PYSEC-2020-36

Also known as: BIT-django-2020-9402, CVE-2020-9402, GHSA-3gh2-xw74-jmcw

Summary

The record has no summary.

Details

Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4 allows SQL Injection if untrusted data is used as a tolerance parameter in GIS functions and aggregates on Oracle. By passing a suitably crafted tolerance to GIS functions and aggregates on Oracle, it was possible to break escaping and inject malicious SQL.

Severity

Not rated by the source.

Dates

Published
2020-03-05 15:15 UTC
Modified
2026-07-09 16:56 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.11, fixed 1.11.29, introduced 2.2, fixed 2.2.11, introduced 3.0, fixed 3.0.4 (ecosystem)

Fixed versions

1.11.29, 2.2.11, 3.0.4

Fix

  • Fixed version 1.11.29
    pip install --upgrade django==1.11.29
  • Fixed version 2.2.11
    pip install --upgrade django==2.2.11
  • Fixed version 3.0.4
    pip install --upgrade django==3.0.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences