---
id: CVE-2026-25674
aliases:
  - GHSA-mjgh-79qc-68w3
  - BIT-django-2026-25674
  - PYSEC-2026-2449
title: Django has a Race Condition vulnerability
summary: Django has a Race Condition vulnerability
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'
vendor: django
product: django
ecosystem: pip
affected:
  - 'django >= 6.0, < 6.0.3'
  - 'django >= 5.2, < 5.2.12'
  - 'django >= 4.2, < 4.2.29'
patched:
  - django 6.0.3
  - django 5.2.12
  - django 4.2.29
published: '2026-03-03'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:39.941187426Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-mjgh-79qc-68w3'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-25674'
  - url: 'https://docs.djangoproject.com/en/dev/releases/security'
  - url: 'https://github.com/django/django'
  - url: 'https://groups.google.com/g/django-announce'
  - url: 'https://www.djangoproject.com/weblog/2026/mar/03/security-releases'
tags:
  - osv
  - pip
epss: 0.00326
epssPercentile: 0.22998
ingestedAt: '2026-07-13T18:58:00.701Z'
---

## Overview

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 packages

- `django >= 6.0, < 6.0.3`
- `django >= 5.2, < 5.2.12`
- `django >= 4.2, < 4.2.29`

## Remediation

Upgrade to a patched release:

- `django 6.0.3`
- `django 5.2.12`
- `django 4.2.29`
