Bug 2400449 (CVE-2025-59681) - CVE-2025-59681 django: Potential SQL injection in QuerySet.annotate(), alias(), aggregate(), and extra() on MySQL and MariaDB1
Summary: CVE-2025-59681 django: Potential SQL injection in QuerySet.annotate(), alias(...
Keywords:
Status: NEW
Alias: CVE-2025-59681
Deadline: 2025-10-01
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-30 13:17 UTC by OSIDB Bzimport
Modified: 2025-10-22 16:41 UTC (History)
55 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:18984 0 None None None 2025-10-22 16:41:39 UTC

Description OSIDB Bzimport 2025-09-30 13:17:50 UTC
QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), andQuerySet.extra() methods were subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods on MySQL and MariaDB.

Comment 1 errata-xmlrpc 2025-10-22 16:41:35 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:18984 https://access.redhat.com/errata/RHSA-2025:18984


Note You need to log in before you can comment on or make changes to this bug.