Ubuntu CVE Tracker
UBUNTU-CVE-2024-42005
Details
An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QuerySet.values() and values_list() methods on models with a JSONField are subject to SQL injection in column aliases via a crafted JSON object key as a passed *arg.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:22.04:LTS | python-django | All versions before 2:3.2.12-2ubuntu1.13 (fixed in 2:3.2.12-2ubuntu1.13) |
| Ubuntu:24.04:LTS | python-django | All versions before 3:4.2.11-1ubuntu1.2 (fixed in 3:4.2.11-1ubuntu1.2) |