Upstream information

CVE-2025-59681 at MITRE

Description

An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column aliases, when using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods (on MySQL and MariaDB).

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having critical severity.

CVSS v3 Scores
  CNA (MITRE) SUSE
Base Score 7.1 9.8
Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network Network
Attack Complexity High Low
Privileges Required Low None
User Interaction None None
Scope Changed Unchanged
Confidentiality Impact High High
Integrity Impact Low High
Availability Impact None High
CVSSv3 Version 3.1 3.1
CVSS v4 Scores
  SUSE
Base Score 9.3
Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attack Vector Network
Attack Complexity Low
Attack Requirements None
Privileges Required None
User Interaction None
Vulnerable System Confidentiality Impact High
Vulnerable System Integrity Impact High
Vulnerable System Availability Impact High
Subsequent System Confidentiality Impact None
Subsequent System Integrity Impact None
Subsequent System Availability Impact None
CVSSv4 Version 4.0
SUSE Bugzilla entry: 1250485 [NEW]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE Linux Enterprise Module for Package Hub 15 SP6
  • python311-Django >= 4.2.11-150600.3.33.1
Patchnames:
SUSE-SLE-Module-Packagehub-Subpackages-15-SP6-2025-3446
SUSE Linux Enterprise Module for Package Hub 15 SP7
  • python311-Django >= 4.2.11-150600.3.33.1
Patchnames:
SUSE-SLE-Module-Packagehub-Subpackages-15-SP7-2025-3446
openSUSE Leap 15.6
  • python311-Django >= 4.2.11-150600.3.33.1
Patchnames:
openSUSE-SLE-15.6-2025-3446


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Module for Package Hub 15 SP6 python-Django Released
SUSE Linux Enterprise Module for Package Hub 15 SP7 python-Django Released
openSUSE Leap 15.6 python-Django Released


SUSE Timeline for this CVE

CVE page created: Wed Sep 24 18:02:02 2025
CVE page last modified: Thu Oct 2 18:33:29 2025