CVE-2026-25674Djangoproject Django
Low 3.7 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.1
- 3.7
- EPSS
- —
- Auth required
- No
- Published
- Mar 3, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-362
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
An issue was discovered in 6.0 before 6.0.3, 5.2 before 5.2.12, and 4.2 before 4.2.29.
Race condition in file-system storage and file-based cache backends in Django allows an attacker to cause file system objects to be created with incorrect permissions via concurrent requests, where one thread's temporary `umask` change affects other threads in multi-threaded environments.
Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Tarek Nakkouch for reporting this issue.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 6.0 < 6.0.3 |
6.0.3 |
pip install "django>=6.0.3" |
| PyPI | django |
≥ 5.2 < 5.2.12 |
5.2.12 |
pip install "django>=5.2.12" |
| PyPI | django |
≥ 4.2 < 4.2.29 |
4.2.29 |
pip install "django>=4.2.29" |
| PyPI | django |
≥ 4.2 < 4.2.29 |
4.2.29 |
pip install "django>=4.2.29" |
| PyPI | django |
≥ 5.2 < 5.2.12 |
5.2.12 |
pip install "django>=5.2.12" |
| PyPI | django |
≥ 6.0 < 6.0.3 |
6.0.3 |
pip install "django>=6.0.3" |
Per OSV / GitHub Advisories (GHSA-mjgh-79qc-68w3, PYSEC-2026-2449). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 4.2.0 < 4.2.29 |
| djangoproject | django | ≥ 5.2 < 5.2.12 |
| djangoproject | django | ≥ 6.0 < 6.0.3 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- Security update for python-Django · SUSE · openSUSE-SU-2026:20373-1 · Mar 17, 2026 Low
- Security update for python-Django · SUSE · SUSE-SU-2026:0821-1 · Mar 5, 2026 Low
Also: SUSE (+3)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Patch Vendor Advisory
- groups.google.com Release Notes
- www.djangoproject.com Patch Vendor Advisory