VDB
GHSA-p64x-8rxx-wf6q
GHSA-p64x-8rxx-wf6q
PUBLISHED
CVSS 9.800000190734863 CRITICAL
Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
Record from GitHub Advisory Database · Published July 5, 2022
Django is fixed in 4.0.6 and 3.2.14 (PyPI)
Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Django | PyPI | 4.0.6, 3.2.14 |
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PyPI | Django | 3.2a1, 4.0a1 |
| PyPI | Django | |
| PyPI | django | 3.2.10, 3.2.11, 3.2.12 |
Timeline
- Jul 5, 2022 CVE Published
- Mar 2, 2026 Distribution Patch
- Mar 2, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln GHSA-p64x-8rxx-wf6q
vulnetix vdb fixes GHSA-p64x-8rxx-wf6q
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/GHSA-p64x-8rxx-wf6q/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-34265 advisory
- https://github.com/django/django/commit/877c800f255ccaa7abde1fb944de45d1616f5cc9 url
- https://github.com/django/django/commit/a9010fe5555e6086a9d9ae50069579400ef0685e url
- https://github.com/django/django package
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-213.yaml url
- https://www.debian.org/security/2022/dsa-5254 url
- https://github.com/django/django/commit/0dc9c016fadb71a067e5a42be30164e3f96c0492 url
- https://github.com/django/django/commit/5e2f4ddf2940704a26a4ac782b851989668d74db url
- https://docs.djangoproject.com/en/4.0/releases/security url
- https://groups.google.com/forum/#!forum/django-announce url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK url
- https://github.com/advisories/GHSA-p64x-8rxx-wf6q vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI url
- https://security.netapp.com/advisory/ntap-20220818-0006 url
- https://www.djangoproject.com/weblog/2022/jul/04/security-releases url