Skip to main content
Mallory
CriticalVulnerability

CVE-2026-132092: SQL Injection in Django ORM range and in Lookups

Published Dec 2, 2026 · Updated today
Trending this week#64of 439,515 vulnerabilities
Mention activity · 30 days30 mentions · peak 24 in a dayToday
CVSS9.3Critical · v4
EPSS-30-day exploit probability
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-132092CWE-89 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

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.
Activity feed

Recent activity

30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
csirt bjNews · Dec 3, 2026Multiples vulnérabilités affectant Django - bjCSIRTThe advisory describes a CVSS 9.8 SQL injection vulnerability caused by improper handling of the '%' character during SQL query construction by Django's ORM. An unauthenticated attacker could inject malicious SQL and compromise all data stored in the database. The advisory lists affected releases as Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20; unsupported versions may also be affected. It recommends upgrading and validating and restricting user inputs related to query parameters and data definitions.Read more ↗cycode blogNews · Dec 2, 2026Django4Shell (CVE-2026-124827): Affected Versions, How to Check and Fix | CycodeA SQL injection vulnerability in Django’s range and in lookups, addressed in Django 6.1.4, 6.0.11, and 5.2.20 alongside Django4Shell. The content provides no further vulnerability-specific exploitation or mitigation details.Read more ↗orca security blogNews · Dec 2, 2026Django4Shell (CVE-2026-124827): GeoDjango RCE Flaw | OrcaHigh-severity SQL injection vulnerability in Django range/in lookups, listed among additional vulnerabilities fixed in the December 2, 2026 security release.Read more ↗ghsa syntheticNews · Dec 2, 2026GHSA-c7wh-8726-4mmjA SQL injection vulnerability in Django's range and in lookups when queries involve aliases or key transforms containing percent signs. It affects Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. Unsupported series, including 5.1.x, 5.0.x, and 4.2.x, were not evaluated and may also be affected.Read more ↗
+8 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity17Community discussion across Reddit, Mastodon, and other social sources.