django-tenantsにSQLインジェクションの脆弱性、他テナントの情報が読まれるおそれ
Summary
django-tenants 3.4.8以上4.0.1未満に、スキーマ名のエスケープ不足によるSQLインジェクションの脆弱性があります。スキーマ名を選べる、または影響を与えられる攻撃者が、ほかのテナントのデータを読んだりアプリのデータベースユーザーとしてSQLを実行したりするおそれがあり、CVSSv3は8.8です。修正版の4.0.1に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
django-tenants 3.4.8以上4.0.1未満に、スキーマ名のエスケープ不足によるSQLインジェクションの脆弱性があります。スキーマ名を選べる、または影響を与えられる攻撃者が、ほかのテナントのデータを読んだりアプリのデータベースユーザーとしてSQLを実行したりするおそれがあり、CVSSv3は8.8です。修正版の4.0.1に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| django-tenantsdjango-tenants |
≥ 3.4.8, < 4.0.1→ 4.0.1 |
4.0.1 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web github.com
- web github.com