Skip to content
Heist/ feed
Back to feed
HighFix available

py-django, py3-django — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2020-9402

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.

Products
py-django, py3-django
Affected versions
Not specified
Fixed versions
1.11.29-r0
CVEs
CVE-2020-9402
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 12:14 UTC · Revision 1

Source evidence

ALPINE-CVE-2020-9402

core-osv · Original source

Published 5 Mar 2020, 15:15 UTC

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.

osv:ALPINE-CVE-2020-9402

py-django

Fixed versions: 1.11.29-r0

py-django

Fixed versions: 1.11.29-r0

py-django

Fixed versions: 1.11.29-r0

py3-django

Fixed versions: 1.11.29-r0

py3-django

Fixed versions: 1.11.29-r0

Complete source record
{
  "id": "537e7e6f43631d7e7a06157ae542c3d1d54e219088bc996736f58e79f457010f",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-9402",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2020-9402",
    "summary": "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.",
    "evidence": "osv:ALPINE-CVE-2020-9402",
    "products": [
      {
        "name": {
          "value": "py-django",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.11.29-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py-django",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.11.29-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py-django",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.11.29-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-django",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.11.29-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-django",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.11.29-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2020-9402",
      "aliases": [
        "ALPINE-CVE-2020-9402"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.11.29-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py-django",
            "purl": "pkg:apk/alpine/py-django?arch=source",
            "ecosystem": "Alpine:v3.10"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-9402.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.11.29-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py-django",
            "purl": "pkg:apk/alpine/py-django?arch=source",
            "ecosystem": "Alpine:v3.8"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-9402.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.11.29-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py-django",
            "purl": "pkg:apk/alpine/py-django?arch=source",
            "ecosystem": "Alpine:v3.9"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-9402.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.11.29-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-django",
            "purl": "pkg:apk/alpine/py3-django?arch=source",
            "ecosystem": "Alpine:v3.11"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-9402.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.11.29-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-django",
            "purl": "pkg:apk/alpine/py3-django?arch=source",
            "ecosystem": "Alpine:v3.12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2020-9402.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-26T11:17:55.192755959Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-9402"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2020-9402"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-9402",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 450707,
  "published_at": "2020-03-05T15:15:12.41+00:00"
}