Appsecure logo

CVE-2026-1207: Medium Vulnerability in Django

A medium-severity SQL injection vulnerability has been identified in Django versions 6.0 prior to 6.0.2, 5.2 prior to 5.2.11, and 4.2 prior to 4.2.28. Organizations are urged to patch their systems promptly to mitigate potential SQL injection risks.

MEDIUMCVSS 5.4 · Published February 3, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

An issue was discovered in Django affecting versions 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. This vulnerability allows remote attackers to inject SQL via the band index parameter in raster lookups on the `RasterField`, which is only implemented on PostGIS. Earlier unsupported Django series, such as 5.0.x, 4.1.x, and 3.2.x, were not evaluated and may also be affected. Django appreciates Tarek Nakkouch for reporting this issue.

The vulnerability has been assigned a CVSS score of 5.4, indicating a medium severity level. The risk to organizations includes potential unauthorized SQL command execution, which could lead to data exposure or manipulation if successfully exploited.

Organizations should prioritize patching immediately to mitigate the risk associated with this vulnerability. Patches are available for affected versions, and it is crucial for organizations to ensure they are running updated software to prevent exploitation.

As of now, no public exploit has been confirmed, and the vulnerability is not listed as actively exploited in the Known Exploited Vulnerabilities (KEV) catalog. However, organizations should not become complacent, as the potential for exploitation exists.

Vulnerability Details

Django has classified this vulnerability under CWE-89, which relates to SQL injection issues. The full CVSS vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N, indicating that the attack vector is network-based, with low complexity and low privileges required to execute the attack.

Technical Analysis

The root cause of this vulnerability lies in the improper handling of user input for the band index parameter in raster lookups. Since this functionality is specific to the PostGIS implementation of Django, it is critical to review how user-supplied data is processed in this context.

The attack vector is network-based, meaning that an attacker can exploit this vulnerability remotely without physical access to the system. The attack complexity is low, as it requires minimal effort to inject malicious SQL commands if the system is vulnerable.

No user interaction is required for exploitation, making it easier for an attacker to execute an attack. The confidentiality and integrity impacts are classified as low, indicating that sensitive data may be exposed or altered, but there is no impact on availability.

Risk & Impact Analysis

The real-world deployment risk of this vulnerability is heightened due to its nature, allowing remote attackers to exploit vulnerable systems. Organizations using affected Django versions should assess their deployment environment and determine the potential blast radius of an exploit.

Risk to organizations includes unauthorized access to sensitive data and potential data corruption. Given the CVSS score of 5.4, organizations should address this vulnerability in their priority patch cycle to minimize exposure.

Although the vulnerability is currently not listed as actively exploited in the KEV catalog, the potential for exploitation remains a concern. Organizations should schedule remediation and ensure they remain vigilant against potential exploitation.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The following Django versions are affected by this vulnerability: 6.0 prior to 6.0.2, 5.2 prior to 5.2.11, and 4.2 prior to 4.2.28. All versions prior to vendor patch are vulnerable.

Mitigation & Remediation

Organizations are advised to upgrade to Django versions 6.0.2, 5.2.11, or 4.2.28 to mitigate this vulnerability effectively. If immediate patching is not feasible, consider implementing input validation and sanitization to prevent SQL injection attacks.

Regular security assessments, including penetration testing, are also recommended to identify and remediate vulnerabilities proactively.

Detection Guidance

Monitoring logs for unusual database queries and behavior can help detect potential exploitation attempts. Look for patterns indicating SQL injection attempts, such as unexpected characters or commands being executed.

AppSecure Threat Intelligence Insight

The emergence of this vulnerability underscores the importance of secure coding practices, especially with SQL interactions in web applications. Security teams must remain vigilant and adapt to evolving threat landscapes.

For further reading on secure coding practices, refer to our article on secure coding practices. Additionally, understanding the implications of SQL injection attacks is crucial for developing robust defenses, as discussed in our injection attacks analysis. Organizations should also stay informed about the latest trends in vulnerabilities through our vulnerability management program resources.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.