Bug 2574093 (CVE-2026-130082)

Summary: CVE-2026-130082 django-tenants: django-tenants: SQL injection via unescaped tenant schema names
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cmyers, dnakabaa, kaycoth, lcouzens
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in django-tenants. In its PostgreSQL database backend, tenant schema names are not properly sanitized before being included in database management queries. An authenticated remote attacker who can specify or manipulate tenant schema names could exploit this to perform Structured Query Language (SQL) injection. Successful exploitation allows an attacker to access other tenants' data or execute arbitrary database commands with the privileges of the application's database user.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-16 22:12:28 UTC
django-tenants 3.4.8 before 4.0.1 contains an SQL injection vulnerability in its PostgreSQL backend that allows attackers to inject SQL through unescaped tenant schema names. Attackers who can choose or influence a schema name can supply quote characters that are interpolated into SET search_path and CREATE, DROP or ALTER SCHEMA statements, letting them read other tenants' data or run SQL as the application's database user.