CVE-2023-23969
Django contains Uncontrolled Resource Consumption via cached header
Reported by mitre · Published February 1, 2023
django is fixed in 4.1.6, 4.0.9 and 3.2.17 (PyPI)
In Django 3.2 before 3.2.17, 4.0 before 4.0.9, and 4.1 before 4.1.6, the parsed values of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if the raw value of Accept-Language headers is very large.
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.1.6, 4.0.9, 3.2.17 |
| py3-django | Alpine | 3.2.17-r0 |
| django | djangoproject | 4.1.6, 4.0.9, 3.2.17 |
| django | Bitnami | 4.1.6, 4.0.9, 3.2.17 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | py3-django | 0 |
| n/a | n/a | * |
| PyPI | Django | 3.2a1, 4.0a1, 4.1a1 |
Timeline
- Feb 1, 2023 CVE Published
- Feb 2, 2023 EPSS Score (30 in total, the first dated here)
- May 4, 2023 CVE Updated
- Mar 9, 2026 Security Advisory (13 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-23969
vulnetix vdb fixes CVE-2023-23969
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/CVE-2023-23969/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20230201 [SECURITY] [DLA 3306-1] python-django security update mailing-list
- FEDORA-2023-8fed428c5e vendor-advisory
- FEDORA-2023-a53ab7c969 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-23969 advisory
- https://github.com/advisories/GHSA-q2jf-h9jm-m7p4 advisory
- https://github.com/django/django/commit/4452642f193533e288a52c02efb5bbc766a68f95 patch
- https://github.com/django/django/commit/9d7bd5a56b1ce0576e8e07a8001373576d277942 patch
- https://github.com/django/django/commit/c7e0151fdf33e1b11d488b6f67b94fdf3a30614a patch
- https://docs.djangoproject.com/en/4.1/releases/security url
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-12.yaml advisory
- https://groups.google.com/forum/#!forum/django-announce url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI url
- https://security.netapp.com/advisory/ntap-20230302-0007 advisory
- https://www.djangoproject.com/weblog/2023/feb/01/security-releases url