{"id":"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.","modified":"2026-02-04T04:20:08.473328Z","published":"2024-08-06T13:00:00Z","related":["USN-6946-1"],"upstream":["CVE-2024-42005"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-42005"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-42005"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6946-1"}],"affected":[{"package":{"name":"python-django","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-django@2:3.2.12-2ubuntu1.13?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:3.2.12-2ubuntu1.13"}]}],"versions":["2:2.2.24-1ubuntu1","2:3.2.12-2","2:3.2.12-2ubuntu1","2:3.2.12-2ubuntu1.1","2:3.2.12-2ubuntu1.2","2:3.2.12-2ubuntu1.3","2:3.2.12-2ubuntu1.4","2:3.2.12-2ubuntu1.5","2:3.2.12-2ubuntu1.6","2:3.2.12-2ubuntu1.7","2:3.2.12-2ubuntu1.8","2:3.2.12-2ubuntu1.9","2:3.2.12-2ubuntu1.10","2:3.2.12-2ubuntu1.11","2:3.2.12-2ubuntu1.12"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-django","binary_version":"2:3.2.12-2ubuntu1.13"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-42005.json"}},{"package":{"name":"python-django","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-django@3:4.2.11-1ubuntu1.2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3:4.2.11-1ubuntu1.2"}]}],"versions":["3:4.2.4-1ubuntu2","3:4.2.8-1","3:4.2.9-1","3:4.2.11-1","3:4.2.11-1ubuntu1","3:4.2.11-1ubuntu1.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-django","binary_version":"3:4.2.11-1ubuntu1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-42005.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}