PyPA Advisory Database
PYSEC-2020-36
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | django | From 1.11 before 1.11.29 (fixed in 1.11.29) From 2.2 before 2.2.11 (fixed in 2.2.11) From 3.0 before 3.0.4 (fixed in 3.0.4) |
References
- https://groups.google.com/forum/#%21topic/django-announce/fLUh_pOaKrY
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY/
- https://lists.debian.org/debian-lts-announce/2022/05/msg00035.html
- https://security.gentoo.org/glsa/202004-17
- https://security.netapp.com/advisory/ntap-20200327-0004/
- https://usn.ubuntu.com/4296-1/
- https://www.debian.org/security/2020/dsa-4705
- https://docs.djangoproject.com/en/3.0/releases/security/
- https://www.djangoproject.com/weblog/2020/mar/04/security-releases/
- https://github.com/advisories/GHSA-3gh2-xw74-jmcw