CVE-2026-132092: SQL Injection in Django ORM range and in Lookups
CVE-2026-132092 is an SQL injection vulnerability in Django ORM's range and in lookups when queries involve aliases or key transforms containing percent signs. Incorrect handling of SQL fragments and parameters can cause percent-containing identifiers to be interpreted as SQL format placeholders. The range variant requires incorrectly supplying more than two right-hand-side values; the in variant requires a bilateral transform. Vulnerable handling occurs in Range.get_rhs_op() and batch_process_rhs(), where unchecked range bounds and silently mismatched SQL-fragment and parameter sequences can permit injection. Affected supported releases are Django 5.2 before 5.2.20, 6.0 before 6.0.11, and 6.1 before 6.1.4. Unsupported series, including 4.2, 5.0, and 5.1, were not evaluated and may also be affected. GeoDjango is not required.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can alter database query semantics, potentially allowing unauthorized disclosure, modification, or deletion of data and disruption of database-backed services. The scope of compromise depends on the affected query and the privileges of the application's database account. Exploitation can occur without authentication or user interaction when the vulnerable query construction is exposed through an unauthenticated endpoint.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, prevent untrusted input from influencing percent-containing query aliases or key-transform names, and remove percent signs from those identifiers where feasible. Enforce exactly two right-hand-side values for range lookups and avoid or disable affected in lookups using bilateral transforms. Restrict access to endpoints that expose vulnerable query construction if these conditions cannot be eliminated. These application-level controls are temporary measures, not substitutes for patching.
Remediation
Patch, then assume compromise.
Upgrade to Django 5.2.20, 6.0.11, or 6.1.4, or a later supported release in the corresponding series. Migrate unsupported deployments to a patched, supported release. Rebuild and redeploy application images that bundle Django and verify the running version across all instances. The patch enforces exactly two range bounds in Range.get_rhs_op() and introduces strict pairing of SQL fragments and parameters in batch_process_rhs(), raising ValueError on mismatches instead of silently truncating processing.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-132092 exploited in the wild?
- As of Dec 3, 2026, Mallory has no reports of CVE-2026-132092 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-132092?
- As of Dec 3, 2026, Mallory has found no public exploit for CVE-2026-132092.
- Is there a patch for CVE-2026-132092?
- Upgrade to Django 5.2.20, 6.0.11, or 6.1.4, or a later supported release in the corresponding series. Migrate unsupported deployments to a patched, supported release.
- How severe is CVE-2026-132092?
- CVE-2026-132092 has a CVSS v4 score of 9.3 (Critical) as of Dec 3, 2026.
Recent activity
30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.