Bug 2392990 (CVE-2025-57833)

Summary: CVE-2025-57833 django: Django SQL injection in FilteredRelation column aliases
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: anthomas, brasmith, caswilli, cochase, dnakabaa, dranck, eglynn, ehelms, ggainey, haoli, hkataria, jajackso, jcammara, jjoyce, jmitchel, jneedle, joehler, jschluet, juwatts, jwendell, jwong, kaycoth, kegrant, koliveir, kshier, lbrazdil, lcouzens, lhh, lsvaty, mabashia, mburns, mgarciac, mhulan, mminar, mskarbek, nmoumoul, osousa, pbraun, pcreech, pgrist, rbiba, rcernich, rchan, shvarugh, simaishi, smallamp, smcdonal, sskracic, stcannon, teagle, tfister, thavo, tmalecek, tpfromme, ttakamiy, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
An SQL injection flaw has been discovered in the Django web framework. 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().
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2393800, 2393801, 2393802, 2393803, 2393804, 2393805, 2393806, 2393807, 2393808    
Bug Blocks:    

Description OSIDB Bzimport 2025-09-03 21:01:17 UTC
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().

Comment 2 errata-xmlrpc 2025-09-22 18:11:54 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2025:16403 https://access.redhat.com/errata/RHSA-2025:16403

Comment 3 errata-xmlrpc 2025-09-22 20:31:22 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2025:16404 https://access.redhat.com/errata/RHSA-2025:16404

Comment 4 errata-xmlrpc 2025-09-23 18:01:25 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.5 for RHEL 9
  Red Hat Ansible Automation Platform 2.5 for RHEL 8

Via RHSA-2025:16487 https://access.redhat.com/errata/RHSA-2025:16487

Comment 5 errata-xmlrpc 2025-09-23 18:18:06 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.5 for RHEL 8
  Red Hat Ansible Automation Platform 2.5 for RHEL 9

Via RHSA-2025:16514 https://access.redhat.com/errata/RHSA-2025:16514

Comment 6 errata-xmlrpc 2025-10-07 14:20:14 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 17.1 for RHEL 9

Via RHSA-2025:17498 https://access.redhat.com/errata/RHSA-2025:17498

Comment 7 errata-xmlrpc 2025-10-07 14:21:00 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 16.2

Via RHSA-2025:17499 https://access.redhat.com/errata/RHSA-2025:17499

Comment 8 errata-xmlrpc 2025-10-07 14:26:38 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Services on OpenShift 18.0

Via RHSA-2025:17500 https://access.redhat.com/errata/RHSA-2025:17500

Comment 9 errata-xmlrpc 2025-10-08 19:04:17 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.17 for RHEL 9

Via RHSA-2025:17606 https://access.redhat.com/errata/RHSA-2025:17606

Comment 10 errata-xmlrpc 2025-10-08 19:22:33 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.16 for RHEL 8
  Red Hat Satellite 6.16 for RHEL 9

Via RHSA-2025:17613 https://access.redhat.com/errata/RHSA-2025:17613

Comment 11 errata-xmlrpc 2025-10-08 19:24:35 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.15 for RHEL 8

Via RHSA-2025:17614 https://access.redhat.com/errata/RHSA-2025:17614