CVE-2025-57833

Source
https://cve.org/CVERecord?id=CVE-2025-57833
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-57833.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-57833
Aliases
Downstream
Related
Published
2025-09-03T00:00:00Z
Modified
2026-05-15T04:14:06.710922091Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N CVSS Calculator
Summary
[none]
Details

An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().

Database specific
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "4.2"
                },
                {
                    "fixed": "4.2.24"
                },
                {
                    "introduced": "5.1"
                },
                {
                    "fixed": "5.1.12"
                },
                {
                    "introduced": "5.2"
                },
                {
                    "fixed": "5.2.6"
                }
            ]
        },
        {
            "source": "CPE_FIELD",
            "extracted_events": [
                {
                    "introduced": "4.2"
                },
                {
                    "fixed": "4.2.24"
                },
                {
                    "introduced": "5.1"
                },
                {
                    "fixed": "5.1.12"
                },
                {
                    "introduced": "5.2"
                },
                {
                    "fixed": "5.2.6"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "introduced": "4.2"
                },
                {
                    "fixed": "4.2.24"
                },
                {
                    "introduced": "5.1"
                },
                {
                    "fixed": "5.1.12"
                },
                {
                    "introduced": "5.2"
                },
                {
                    "fixed": "5.2.6"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57833.json",
    "cna_assigner": "mitre"
}
References

Affected packages