CVE-2026-130082
Description
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.
Statement
This vulnerability is rated as having an Important severity because authenticated users capable of supplying tenant schema names can execute arbitrary SQL queries under the application's database account, compromising tenant isolation and data confidentiality. In Red Hat application environments utilizing django-tenants, exposure is primarily present when tenant creation or onboarding workflows permit untrusted actors to define custom schema identifiers instead of using automated, server-controlled names.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Understanding the Weakness (CWE)
Confidentiality,Integrity,Availability
Technical Impact: Execute Unauthorized Code or Commands
Adversaries could execute system commands, typically by changing the SQL statement to redirect output to a file that can then be executed.
Confidentiality
Technical Impact: Read Application Data
Since SQL databases generally hold sensitive data, loss of confidentiality is a frequent problem with SQL injection vulnerabilities.
Authentication
Technical Impact: Gain Privileges or Assume Identity; Bypass Protection Mechanism
If poor SQL commands are used to check user names and passwords or perform other kinds of authentication, it may be possible to connect to the product as another user with no previous knowledge of the password.
Access Control
Technical Impact: Bypass Protection Mechanism
If authorization information is held in a SQL database, it may be possible to change this information through the successful exploitation of a SQL injection vulnerability.
Integrity
Technical Impact: Modify Application Data
Just as it may be possible to read sensitive information, it is also possible to modify or even delete this information with a SQL injection attack.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.