Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| djangoproject | Django | 6.0 – < 6.0.3, 5.2 – < 5.2.12, 4.2 – < 4.2.29 | 6.0.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 3:4.2.29-1 | — |
| Debian 13 | python-django | No fix yet | — |
| Debian 12 | python-django | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-django | No fix yet | — |
| Ubuntu 26.04 LTS | python-django | No fix yet | — |
| Ubuntu 25.10 | python-django | No fix yet | — |
| Ubuntu 24.04 LTS | python-django | No fix yet | — |
| Ubuntu 22.04 LTS | python-django | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | python-django | No fix yet | — |
| Ubuntu Pro 18.04 LTS | python-django | No fix yet | — |
| Ubuntu Pro 16.04 LTS | python-django | No fix yet | — |
| Ubuntu Pro 14.04 LTS | python-django | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | python-Django | 4.2.11-150600.3.50.1 | SUSE-SU-2026:0821-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Django | 5.2.12-1.1 | openSUSE-SU-2026:10292-1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.29-1.1 | openSUSE-SU-2026:10282-1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
| openSUSE Tumbleweed | python-Django6 | 6.0.3-1.1 | openSUSE-SU-2026:10283-1 |
| openSUSE Leap 16.0 | python-Django | 5.2.4-bp160.6.1 | openSUSE-SU-2026:20373-1 |
| openSUSE Leap 15.6 | python-Django | 4.2.11-150600.3.50.1 | SUSE-SU-2026:0821-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.23 | py3-django | 4.2.29-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 6.0, < 6.0.3 | 6.0.3 | GHSA-mjgh-79qc-68w3 |
| PyPI | django | >= 5.2, < 5.2.12 | 5.2.12 | GHSA-mjgh-79qc-68w3 |
| PyPI | django | >= 4.2, < 4.2.29 | 4.2.29 | GHSA-mjgh-79qc-68w3 |
| PyPI | django | >= 4.2, < 4.2.29 · >= 5.2, < 5.2.12 · >= 6.0, < 6.0.3 | 4.2.29, 5.2.12, 6.0.3 | PYSEC-2026-2449 |
Advisories 9
- WID-SEC-2026-2933 Splunk SOAR: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 2, 2026
- WID-SEC-2026-1730 Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Jul 16, 2026
- openSUSE-SU-2026:11270-1 python313-Django5-5.2.16-1.1 on GA media SUSE / openSUSE Security Updates · Jul 15, 2026
- WID-SEC-2026-0579 Django: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 7, 2026
- openSUSE-SU-2026:20373-1 Security update for python-Django SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10282-1 python311-Django4-4.2.29-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10283-1 python313-Django6-6.0.3-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10292-1 python311-Django-5.2.12-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0821-1 Security update for python-Django SUSE / openSUSE Security Updates · Mar 5, 2026
References
- Django security archive vendor-advisory
- Django releases announcements mailing-list
- Django security releases issued: 6.0.3, 5.2.12, and 4.2.29 vendor-advisory