id: PYSEC-2024-70 modified: 2024-08-07T17:22:10.804411Z published: 2024-08-07T15:15:00Z aliases: - CVE-2024-42005 - GHSA-pv4p-cwwg-4rph 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: - package: ecosystem: PyPI name: django purl: pkg:pypi/django ranges: - type: ECOSYSTEM events: - introduced: "5.0" - fixed: 5.0.8 - introduced: "4.2" - fixed: 4.2.15 versions: - "4.2" - 4.2.1 - 4.2.10 - 4.2.11 - 4.2.12 - 4.2.13 - 4.2.14 - 4.2.2 - 4.2.3 - 4.2.4 - 4.2.5 - 4.2.6 - 4.2.7 - 4.2.8 - 4.2.9 - "5.0" - 5.0.1 - 5.0.2 - 5.0.3 - 5.0.4 - 5.0.5 - 5.0.6 - 5.0.7 references: - type: WEB url: https://docs.djangoproject.com/en/dev/releases/security/ - type: WEB url: https://groups.google.com/forum/#%21forum/django-announce - type: ARTICLE url: https://www.djangoproject.com/weblog/2024/aug/06/security-releases/ - type: ADVISORY url: https://github.com/advisories/GHSA-pv4p-cwwg-4rph