Critical (CVSS 3.1 9.8) CVE-2026-132092 CVSS 4.0 9.3 Critical Updated 2 December 2026, 14:59 GMT

Django SQL injection in range and in lookups (CVE-2026-132092)

Django has patched a SQL injection vulnerability (CVSS 3.1 9.8 Critical, CVSS 4.0 9.3 Critical; Django rating: high) in its range and in ORM lookups when queries involve column aliases or key transforms containing percent signs. Affected supported releases are Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.

Key facts: CVE.org scores CVE-2026-132092 at CVSS 3.1 9.8 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and CVSS 4.0 9.3 Critical (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H), while Django rates it "high" under its own security policy (CWE-89). NVD status for CVE-2026-132092 and CVE-2026-124827 is Deferred as of 2 December 2026 14:17 GMT, not a completed NVD analysis. Affected: Django 6.1 before 6.1.4, 6.0 before 6.0.11, 5.2 before 5.2.20, and Django main (earlier unsupported series such as 5.1.x, 5.0.x and 4.2.x were not evaluated and may also be affected). Fixed: 6.1.4, 6.0.11 and 5.2.20. No exploitation reported by Django as of 2 December 2026; not listed in CISA KEV as of 2 December 2026 (catalogue 2026.11.30). KEV due dates bind US federal agencies only (BOD 26-04). Patch now regardless.

Reviewed by Simon Phillips (Principal Security Architect) and Oliver Legg (Head of Security Operations). First published 2 December 2026.

At a glance

Verified directly from the Django 2 December 2026 security releases, CVE.org, NVD and the CISA KEV catalogue.

What happened

SQL injection in Django ORM range and in lookups with percent signs in aliases or key transforms.

Security researchers reported that Django's range and in ORM lookups were vulnerable to SQL injection when used in queries involving column aliases or key transforms containing percent signs (%).

Per the Django advisory, the __range flaw required incorrectly passing more than two right-hand side values, while the __in flaw required a bilateral transform. As part of the fix, Django's range lookup now strictly requires exactly two right-hand side values. Using percent signs in column aliases and key transforms was already deprecated in Django 6.0 and is scheduled for removal in Django 2028.

The same 2 December 2026 security releases (6.1.4, 6.0.11 and 5.2.20) also fix six other issues. None of those six have a CVSS score of 9.0 or higher:

  • CVE-2026-124827 (Django "high"; CVE.org CVSS 3.1 8.8 High, CVSS 4.0 8.7 High; NVD status Deferred as of 2 December 2026 14:17 GMT): server-side file-write via RasterField assignment, which could enable remote code execution depending on the raster driver. RasterField is only implemented on PostGIS, and geometry fields were not affected. After the patch, RasterField defaults editable to False, but server-side request forgery (SSRF) is still possible if untrusted input is assigned to RasterField.
  • CVE-2026-125673 (Django "low"; CVSS 3.1 3.7 Low, CVSS 4.0 6.3 Medium): potential cache poisoning via dot segments in request paths. Existing cached responses are not invalidated by the upgrade, so clear any potentially affected caches after upgrading.
  • CVE-2026-127929 (Django "low"; CVSS 3.1 2.7 Low, CVSS 4.0 5.1 Medium): information leakage in admin changelist via reverse relations, a special case of CVE-2010-4534 that regressed in Django 5.0.3.
CVEIssueDjango ratingCVSS 3.1CVSS 4.0
CVE-2026-132092Potential SQL injection in range and in lookupshigh9.8 Critical9.3 Critical
CVE-2026-124827Server-side file-write via RasterField assignment (PostGIS only)high8.8 High8.7 High
CVE-2026-115868Potential cross-site scripting in truncatechars_htmlmoderate6.1 Medium5.1 Medium
CVE-2026-125673Potential cache poisoning via dot segments in request pathslow3.7 Low6.3 Medium
CVE-2026-119642Information leakage in admin changelist via pk alias for OneToOneFieldlow2.7 Low5.1 Medium
CVE-2026-127929Information leakage in admin changelist via reverse relations (regression of CVE-2010-4534 in 5.0.3)low2.7 Low5.1 Medium
CVE-2026-132809Heap buffer overflow in OGRGeometry.wkblow5.3 Medium6.9 Medium

Proactive remediation

Upgrade supported Django applications and audit ORM query patterns for user-influenced aliases and lookups.

Reactive detection and response

What to inspect in application, WAF and database logs if an unpatched Django service was exposed.

Free detection pack

Pack version 1.0.0, slot django-cve-2026-132092-pack-v1, built by the CybaVerse threat hunt team for developers, IT teams and MSPs. It includes 11 KQL hunts, 7 Sigma rules, and read-only bash and PowerShell version checkers with byte-for-byte parity. The checkers never execute Python and never open settings.py or .env files.

Verdicts

  • AFFECTEDDjango 5.2.0 to 5.2.19, 6.0.0 to 6.0.10, 6.1.0 to 6.1.3, or pre-releases of fixed versions (such as 5.2.20rc1 or 6.1.4a1).
  • FIXEDDjango 5.2.20, 6.0.11 or 6.1.4 (final) and later micro versions on those branches, plus later supported series (6.2+).
  • REVIEWUnsupported series before 5.2 (including 4.2.x, 5.0.x and 5.1.x, which CVE.org states were not evaluated and may also be affected), unknown series, or unparseable input.

Exit codes

CodeMeaning
0FIXED
2AFFECTED
3REVIEW
5Usage or read error

On multi-row CSV runs (host,version) the worst result wins: AFFECTED, then REVIEW, then FIXED. Patch now regardless.

Know the limits

  • Both checkers are read-only and offline. They never execute Python, never open settings.py, local_settings.py, secrets.py, credentials.py or .env, and print non-version inputs as (not shown).
  • The KQL and Sigma rules are our own pattern. WAF, proxy, syslog, application and database field names and line formats are unverified, and the KQL has NOT been run against a live tenant yet. Test in your own workspace first and treat hits as a review list, not proof of exploitation.
  • No exploitation reported by Django as of 2 December 2026; not listed in CISA KEV as of 2 December 2026 (catalogue 2026.11.30). KEV due dates bind US federal agencies only (BOD 26-04). Patch now regardless.

How CybaVerse helps

One 24/7 UK-based Cyber Operations team using CybaOps to find exposed software, verify remediation and hunt for suspicious database and application activity.

CybaOps brings asset inventory, exposure tracking and 24/7 detection and response together in one platform, with your EDR optional. When critical framework vulnerabilities like CVE-2026-132092 drop, our Cyber Operators triage alerts within 15 minutes, help your team verify patched builds across production estates, and monitor application and database telemetry for exploitation attempts.