Skip to main content
Public proof of conceptFix available

CVE-2025-57833

A public proof of concept exists; no exploitation attested.

  • Published2025-09-03
  • Fixed in5.2.6 · 5.1.12 · 4.2.24
  • WeaknessCWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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().

Timeline

dates in UTC
  1. 2025-09-0321:15CVE publishedNVD

Versions per branch

NVD · OSV
Django
BranchAffectedFixed in
5.2≥ 5.2, < 5.2.65.2.6
5.2≥ 5.2.0, < 5.2.65.2.6
5.2≥ 5.2a1, < 5.2.65.2.6
5.1≥ 5.1, < 5.1.125.1.12
5.x≥ 5.0.0, < 5.1.125.1.12
5.x≥ 5.0a1, < 5.1.125.1.12
4.2≥ 4.2, < 4.2.244.2.24
4.2< 4.2.244.2.24

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As mitre, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • djangoproject Djangoother versions: unknown
    Affected
    • ≥ 4.2, < 4.2.24fixed in 4.2.24custom
    • ≥ 5.1, < 5.1.12fixed in 5.1.12custom
    • ≥ 5.2, < 5.2.6fixed in 5.2.6custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-09-08

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • automation-controller-venv-towerRed Hat:ansible_automation_platform:2.5::el9all versions · fixed in 0:4.6.20-1.el9ap
  • automation-controller-venv-towerRed Hat:ansible_automation_platform:2.5::el8all versions · fixed in 0:4.6.20-1.el8ap
  • awxChainguardall versions · fixed in 24.6.1-r14
  • cjsonRed Hat:satellite:6.17::el9all versions · fixed in 0:1.7.18-2.el9satand 2 other packages
  • cjsonRed Hat:satellite:6.16::el9all versions · fixed in 0:1.7.18-2.el9satand 2 other packages
  • cjsonRed Hat:satellite:6.16::el8all versions · fixed in 0:1.7.18-2.el8satand 2 other packages
  • cjsonRed Hat:satellite:6.15::el8all versions · fixed in 0:1.7.18-2.el8satand 2 other packages
  • cjsonRed Hat:satellite_capsule:6.17::el9all versions · fixed in 0:1.7.18-2.el9satand 2 other packages

75 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-57833 Red Hat Product Security38 products fixed · 4 known affected

    django: Django SQL injection in FilteredRelation column aliases

    ansible-automation-platform-24/lightspeed-rhel8 as a component of Red Hat Ansible Automation Platform 2 · ansible-automation-platform-25/lightspeed-rhel8 as a component of Red Hat Ansible Automation Platform 2 · python-django.src as a component of Red Hat Certification for Red Hat Enterprise Linux 7 · +1 more

  • RHSA-2025:17614 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.15.5.5 Async Update

  • RHSA-2025:17613 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Satellite 6.16.5.4 Async Update

  • RHSA-2025:17606 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.17.5 Async Update

  • RHSA-2025:17500 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat OpenStack Services on OpenShift 18.0 (python-django) security update

  • RHSA-2025:17499 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-django20) security update

5 more advisories

Full record on NVD

Fix

  1. Update Django to 5.2.6 · 5.1.12 · 4.2.24
  2. Vendor fix Red Hat Product Security RHSA-2025:17614 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2025:17606 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.17/html/updating_red_hat_satellite/index
  4. Vendor fix Red Hat Product Security RHSA-2025:17500 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2025:16514 · 4 productsRed Hat Ansible Automation Platform
  6. Workaround from the vendor Red Hat Product Security RHSA-2025:17614 · 25 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2025-09-03
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-6w2r-r2m5-xq5w

Frequently asked questions

What is CVE-2025-57833?

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().

Is CVE-2025-57833 actively exploited?

A proof-of-concept exploit exists for CVE-2025-57833, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-57833?

CVE-2025-57833 has a CVSS v3 base score of 8.1 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Django? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record