{"answers":{"affected":"8 open source packages ship an affected version, including django and Django. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-25674 in the wild and no public exploit code.","fix":"Upgrade django to a fixed version for your release line: 4.2.29, 5.2.12 or 6.0.3.","what":"CVE-2026-25674 is a low-severity vulnerability in Djangoproject Django, published on 3 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25674 and fix it if it is affected.\n\nWhat it is: CVE-2026-25674 is a low-severity vulnerability in Djangoproject Django, published on 3 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-25674 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- django (Bitnami): affected from 4.2.0; fixed in 4.2.29, 5.2.12, 6.0.3\n- django (PyPI): affected from 4.2; fixed in 4.2.29, 5.2.12, 6.0.3\n- django (PyPI): affected from 4.2; fixed in 4.2.29\n- django (PyPI): affected from 5.2; fixed in 5.2.12\n- django (PyPI): affected from 6.0; fixed in 6.0.3\n- Django (PyPI): affected from 4.2; fixed in 4.2.29\n- Django (PyPI): affected from 5.2; fixed in 5.2.12\n- Django (PyPI): affected from 6.0; fixed in 6.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25674/ (Markdown: https://insights.sbomify.com/CVE-2026-25674/index.md)","id":"CVE-2026-25674","markdown":"https://insights.sbomify.com/CVE-2026-25674/index.md","name":"CVE-2026-25674","record":{"aliases":["BIT-django-2026-25674","DEBIAN-CVE-2026-25674","ECHO-f85d-c4a6-6f1f","GHSA-mjgh-79qc-68w3","MGASA-2026-0050","MINI-c95x-c5hr-25p9","OESA-2026-1506","OESA-2026-1508","OESA-2026-1509","OESA-2026-1510","OESA-2026-1511","PYSEC-2026-2449","SUSE-SU-2026:0821-1","UBUNTU-CVE-2026-25674","openSUSE-SU-2026:10282-1","openSUSE-SU-2026:10283-1","openSUSE-SU-2026:10292-1","openSUSE-SU-2026:20373-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["privilege_escalation","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Django web framework","requires_auth":"none","summary":"A race condition in Django's file storage allows attackers to create files with incorrect permissions, potentially leading to privilege escalation or data exposure.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"DSF","cpe":[{"product":"django","vendor":"djangoproject"}],"cvss":{"score":3.7,"severity":"low","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"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.\nRace 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.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Tarek Nakkouch for reporting this issue.","ecosystems":["Bitnami","PyPI","SUSE:Linux Enterprise Module for Package Hub 15 SP7","openSUSE:Leap 15.6","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Potential incorrect permissions on newly created file system objects","id":"CVE-2026-25674","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"djangoproject:django","products":["djangoproject:django"],"type":"race_condition","year":"2026"},"n_packages":14,"n_references":3,"next":{"headline":"Other in M-Track Duo HD","id":"CVE-2026-25676"},"packages":[{"ecosystem":"Bitnami","fixed":["4.2.29","5.2.12","6.0.3"],"introduced":["4.2.0","5.2.0","6.0.0"],"last_affected":[],"package":"django","purl":"pkg:bitnami/django","source":"BIT-django-2026-25674"},{"ecosystem":"PyPI","fixed":["4.2.29"],"introduced":["4.2"],"last_affected":[],"package":"Django","purl":null,"source":"GHSA-mjgh-79qc-68w3"},{"ecosystem":"PyPI","fixed":["5.2.12"],"introduced":["5.2"],"last_affected":[],"package":"Django","purl":null,"source":"GHSA-mjgh-79qc-68w3"},{"ecosystem":"PyPI","fixed":["6.0.3"],"introduced":["6.0"],"last_affected":[],"package":"Django","purl":null,"source":"GHSA-mjgh-79qc-68w3"},{"ecosystem":"PyPI","fixed":["4.2.29","5.2.12","6.0.3"],"introduced":["4.2","5.2","6.0"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"PYSEC-2026-2449"},{"ecosystem":"PyPI","fixed":["4.2.29"],"introduced":["4.2"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"GHSA-mjgh-79qc-68w3"},{"ecosystem":"PyPI","fixed":["5.2.12"],"introduced":["5.2"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"GHSA-mjgh-79qc-68w3"},{"ecosystem":"PyPI","fixed":["6.0.3"],"introduced":["6.0"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"GHSA-mjgh-79qc-68w3"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP7","fixed":["4.2.11-150600.3.50.1"],"introduced":["0"],"last_affected":[],"package":"python-Django","purl":"pkg:rpm/suse/python-Django\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP7","source":"SUSE-SU-2026:0821-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["4.2.11-150600.3.50.1"],"introduced":["0"],"last_affected":[],"package":"python-Django","purl":"pkg:rpm/opensuse/python-Django\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2026:0821-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["5.2.4-bp160.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Django","purl":"pkg:rpm/opensuse/python-Django\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20373-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.2.12-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Django","purl":"pkg:rpm/opensuse/python-Django\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10292-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.2.29-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Django4","purl":"pkg:rpm/opensuse/python-Django4\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10282-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["6.0.3-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Django6","purl":"pkg:rpm/opensuse/python-Django6\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10283-1"}],"prev":{"headline":"Potential denial-of-service vulnerability in URLField via Unicode normalization on Windows","id":"CVE-2026-25673"},"products":["Django"],"published":"2026-03-03","related":[{"cvss_score":9.8,"headline":"Privilege abuse in GenericInlineModelAdmin","id":"CVE-2026-4277","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Django SQL injection in HasKey(lhs, rhs) on Oracle","id":"CVE-2024-53908","kev_date_added":null,"published":"2024-12-06"},{"cvss_score":9.8,"headline":"Django SQL injection vulnerability","id":"CVE-2024-42005","kev_date_added":null,"published":"2024-08-07"},{"cvss_score":9.8,"headline":"Django bypasses validation when using one form field to upload multiple files","id":"CVE-2023-31047","kev_date_added":null,"published":"2023-05-07"},{"cvss_score":9.8,"headline":"Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection","id":"CVE-2022-34265","kev_date_added":null,"published":"2022-07-04"},{"cvss_score":9.8,"headline":"SQL Injection in Django","id":"CVE-2021-35042","kev_date_added":null,"published":"2021-07-02"},{"cvss_score":9.8,"headline":"SQL injection in Django","id":"CVE-2020-7471","kev_date_added":null,"published":"2020-02-03"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-03","vendors":["djangoproject"]},"summary":"A race condition in Django's file storage allows attackers to create files with incorrect permissions, potentially leading to privilege escalation or data exposure.","url":"https://insights.sbomify.com/CVE-2026-25674/"}