Skip to main content
VulnerabilityPublished

CVE-2026-25674: djangoproject Django · Race Condition

Affects djangoproject DjangoSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 3.7 Low · fixed in 6.0.3 : update djangoproject Django when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.0.3, 5.2.12, 4.2.29
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade Django and django to 6.0.3, 5.2.12 or 4.2.29.

Affected software

ProductAffectedFixed in
djangoprojectDjangoAffected
  • >=6.0 <6.0.3
Fixed in
  • 6.0.3
djangoprojectDjangoAffected
  • >=5.2 <5.2.12
Fixed in
  • 5.2.12
djangoprojectDjangoAffected
  • >=4.2 <4.2.29
Fixed in
  • 4.2.29
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • =6.0
  • =5.2
  • =4.2
Fixed in–
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • >=6.0 <6.0.3
  • >=5.2 <5.2.12
  • >=4.2 <4.2.29
Fixed in
  • 6.0.3
  • 5.2.12
  • 4.2.29

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations should immediately upgrade affected Django versions to the patched releases: 6.0.3 or later, 5.2.12 or later, and 4.2.29 or later. If upgrading is not immediately feasible, mitigate risk by avoiding multi-threaded deployment configurations that handle concurrent requests affecting file creation or caching, or by switching to alternative storage and caching backends that do not rely on file-system permissions. Implement strict file permission auditing and monitoring to detect anomalous permission changes. Additionally, consider isolating Django application processes to minimize the impact of improper umask changes across threads. Review application code and deployment environments for any custom file permission handling that could exacerbate the issue. Employ runtime security tools to detect race conditions or unexpected file permission changes. Finally, maintain robust access controls and logging to quickly identify and respond to any exploitation attempts.

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.

References

Community reviews

Loading reviews…