{"answers":{"affected":"8 open source packages ship an affected version, including django and Django. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57833 exists.","fix":"Upgrade django to a fixed version for your release line: 4.2.24, 5.1.12 or 5.2.6.","what":"CVE-2025-57833 is a high-severity SQL injection vulnerability in Djangoproject Django, published on 3 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-57833 and fix it if it is affected.\n\nWhat it is: CVE-2025-57833 is a high-severity SQL injection vulnerability in Djangoproject Django, published on 3 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57833 exists.\n\nAffected packages and fixed versions:\n- django (Bitnami): affected all versions; fixed in 4.2.24, 5.1.12, 5.2.6\n- django (PyPI): affected all versions; fixed in 4.2.24\n- django (PyPI): affected from 4.2; fixed in 4.2.24, 5.1.12, 5.2.6\n- django (PyPI): affected from 5.0a1; fixed in 5.1.12\n- django (PyPI): affected from 5.2a1; fixed in 5.2.6\n- Django (PyPI): affected all versions; fixed in 4.2.24\n- Django (PyPI): affected from 5.0a1; fixed in 5.1.12\n- Django (PyPI): affected from 5.2a1; fixed in 5.2.6\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-2025-57833/ (Markdown: https://insights.sbomify.com/CVE-2025-57833/index.md)","id":"CVE-2025-57833","markdown":"https://insights.sbomify.com/CVE-2025-57833/index.md","name":"CVE-2025-57833","record":{"aliases":["BIT-django-2025-57833","CLSA-2026-1787142559","CLSA-2026-1788862060","CLSA-2026-1789475134","CLSA-2026-1790339542","CLSA-2026-1790830085","CLSA-2026-1790830102","DEBIAN-CVE-2025-57833","DLA-4301-1","ECHO-7627-a361-b4d3","GHSA-6w2r-r2m5-xq5w","MGASA-2025-0229","OESA-2025-2231","OESA-2025-2234","OESA-2025-2235","OESA-2025-2236","OESA-2025-2237","OESA-2025-2354","PYSEC-2025-105","RHSA-2025:16403","RHSA-2025:17498","RHSA-2025:17499","RHSA-2025:17500","ROOT-APP-PYPI-CVE-2025-57833","SUSE-SU-2025:03074-1","UBUNTU-CVE-2025-57833","USN-7736-1","openSUSE-SU-2025:15527-1","openSUSE-SU-2025:15528-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Django web framework","requires_auth":"low_privilege","summary":"Attackers can execute SQL injection via crafted dictionary arguments in Django's QuerySet.annotate or alias methods, potentially reading or modifying database data.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"django","vendor":"djangoproject"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().","ecosystems":["Bitnami","PyPI","Red Hat:ansible_automation_platform:2.4::el8","Red Hat:ansible_automation_platform:2.4::el9","Red Hat:openstack:16.2::el8","Red Hat:openstack:17.1::el9","Red Hat:openstack:18.0::el9","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP7","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-09-05","github_poc":5,"max_poc_stars":6,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-11-02T09:08:46Z","kind":"github_poc","ref":"https://github.com/sw0rd1ight/CVE-2025-57833","stars":6,"title":"Analysis and reproduction of CVE-2025-57833"},{"date":"2025-09-05T05:03:29Z","kind":"github_poc","ref":"https://github.com/Mkway/CVE-2025-57833","stars":2,"title":"We've set up an environment to test CVE-2025-57833. This environment was built using AI, so it's subject to ongoing modification."},{"date":"2025-09-09T12:08:05Z","kind":"github_poc","ref":"https://github.com/loic-houchi/Django-faille-CVE-2025-57833_test","stars":2,"title":null},{"date":"2025-10-08T21:18:38Z","kind":"github_poc","ref":"https://github.com/ianoboyle/CVE-2025-57833","stars":1,"title":"Example Vulnerable application for CVE-2025–57833"},{"date":"2025-11-27T10:12:57Z","kind":"github_poc","ref":"https://github.com/Gayang2902/CVE-2025-57833","stars":1,"title":"CVE-2025-57833 PoC (취약한 도서 검색 서비스)"}],"tier":"weaponised"},"has_fix":true,"headline":"Django is subject to SQL injection through its column aliases","id":"CVE-2025-57833","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"djangoproject:django","products":["djangoproject:django"],"type":"sql_injection","year":"2025"},"n_packages":23,"n_references":4,"next":{"headline":"Denial of service in n/a","id":"CVE-2025-57834"},"packages":[{"ecosystem":"Bitnami","fixed":["4.2.24","5.1.12","5.2.6"],"introduced":["0","5.0.0","5.2.0"],"last_affected":[],"package":"django","purl":"pkg:bitnami/django","source":"BIT-django-2025-57833"},{"ecosystem":"PyPI","fixed":["4.2.24"],"introduced":["0"],"last_affected":[],"package":"Django","purl":null,"source":"GHSA-6w2r-r2m5-xq5w"},{"ecosystem":"PyPI","fixed":["5.1.12"],"introduced":["5.0a1"],"last_affected":[],"package":"Django","purl":null,"source":"GHSA-6w2r-r2m5-xq5w"},{"ecosystem":"PyPI","fixed":["5.2.6"],"introduced":["5.2a1"],"last_affected":[],"package":"Django","purl":null,"source":"GHSA-6w2r-r2m5-xq5w"},{"ecosystem":"PyPI","fixed":["4.2.24"],"introduced":["0"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"GHSA-6w2r-r2m5-xq5w"},{"ecosystem":"PyPI","fixed":["4.2.24","5.1.12","5.2.6"],"introduced":["4.2","5.1","5.2"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"PYSEC-2025-105"},{"ecosystem":"PyPI","fixed":["5.1.12"],"introduced":["5.0a1"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"GHSA-6w2r-r2m5-xq5w"},{"ecosystem":"PyPI","fixed":["5.2.6"],"introduced":["5.2a1"],"last_affected":[],"package":"django","purl":"pkg:pypi/django","source":"GHSA-6w2r-r2m5-xq5w"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el8","fixed":["0:4.2.24-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"python39-django","purl":"pkg:rpm/redhat/python39-django","source":"RHSA-2025:16403"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el8","fixed":["0:4.2.24-1.el8ap"],"introduced":["0"],"last_affected":[],"package":"python3x-django","purl":"pkg:rpm/redhat/python3x-django","source":"RHSA-2025:16403"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el9","fixed":["0:4.2.24-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"python-django","purl":"pkg:rpm/redhat/python-django","source":"RHSA-2025:16403"},{"ecosystem":"Red Hat:ansible_automation_platform:2.4::el9","fixed":["0:4.2.24-1.el9ap"],"introduced":["0"],"last_affected":[],"package":"python3-django","purl":"pkg:rpm/redhat/python3-django","source":"RHSA-2025:16403"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.0.13-20.el8ost"],"introduced":["0"],"last_affected":[],"package":"python-django20","purl":"pkg:rpm/redhat/python-django20","source":"RHSA-2025:17499"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.0.13-20.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-django20","purl":"pkg:rpm/redhat/python3-django20","source":"RHSA-2025:17499"},{"ecosystem":"Red Hat:openstack:17.1::el9","fixed":["0:2.2.24-12.el9ost"],"introduced":["0"],"last_affected":[],"package":"python-django","purl":"pkg:rpm/redhat/python-django","source":"RHSA-2025:17498"},{"ecosystem":"Red Hat:openstack:17.1::el9","fixed":["0:2.2.24-12.el9ost"],"introduced":["0"],"last_affected":[],"package":"python3-django","purl":"pkg:rpm/redhat/python3-django","source":"RHSA-2025:17498"},{"ecosystem":"Red Hat:openstack:18.0::el9","fixed":["0:3.2.12-9.el9ost"],"introduced":["0"],"last_affected":[],"package":"python-django","purl":"pkg:rpm/redhat/python-django","source":"RHSA-2025:17500"},{"ecosystem":"Red Hat:openstack:18.0::el9","fixed":["0:3.2.12-9.el9ost"],"introduced":["0"],"last_affected":[],"package":"python3-django","purl":"pkg:rpm/redhat/python3-django","source":"RHSA-2025:17500"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["4.2.11-150600.3.30.1"],"introduced":["0"],"last_affected":[],"package":"python-Django","purl":"pkg:rpm/suse/python-Django\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2025:03074-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP7","fixed":["4.2.11-150600.3.30.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-2025:03074-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["4.2.11-150600.3.30.1"],"introduced":["0"],"last_affected":[],"package":"python-Django","purl":"pkg:rpm/opensuse/python-Django\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:03074-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.2.6-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Django","purl":"pkg:rpm/opensuse/python-Django\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15527-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.2.24-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Django4","purl":"pkg:rpm/opensuse/python-Django4\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15528-1"}],"prev":{"headline":"Not used","id":"CVE-2025-57832"},"products":["Django"],"published":"2025-09-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":"Red Hat","prefix":"RHSA"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["djangoproject"]},"summary":"Attackers can execute SQL injection via crafted dictionary arguments in Django's QuerySet.annotate or alias methods, potentially reading or modifying database data.","url":"https://insights.sbomify.com/CVE-2025-57833/"}