CVE-2024-42005

Source
https://cve.org/CVERecord?id=CVE-2024-42005
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42005.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42005
Aliases
Downstream
Related
Published
2024-08-07T00:00:00Z
Modified
2026-05-08T04:54:11.531058Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "5.0"
                },
                {
                    "fixed": "5.0.8"
                },
                {
                    "introduced": "4.2"
                },
                {
                    "fixed": "4.2.15"
                }
            ],
            "source": "DESCRIPTION"
        }
    ],
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42005.json"
}
References

Affected packages

Git / github.com/django/django

Affected ranges

Type
GIT
Repo
https://github.com/django/django
Events
Database specific
{
    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "4.2"
        },
        {
            "fixed": "4.2.15"
        },
        {
            "introduced": "5.0"
        },
        {
            "fixed": "5.0.8"
        }
    ],
    "source": "CPE_FIELD"
}

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42005.json"