Django-tenants
django-tenants 3.4.8 before 4.0.1 SQL Injection via Unescaped Schema Name
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-89
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
django-tenants django-tenants
- >= 3.4.8, < 4.0.1
Fixed in 4.0.1
Mitigation
Upgrade django-tenants to 4.0.1 or later.
References
- Vendor advisory github.com/django-tenants/django-tenants/secur…
- Patch github.com/django-tenants/django-tenants/commi…
- Release notes github.com/django-tenants/django-tenants/relea…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.