GHSA-p64x-8rxx-wf6q

    Dashboard / Vulnerabilities / GHSA-p64x-8rxx-wf6q

    GHSA-p64x-8rxx-wf6q

    Published: 5 Jul 2022Last Modified: 21 Feb 2025

    Summary: Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection

    Details: An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The `Trunc()` and `Extract()` database functions are subject to SQL injection if untrusted data is used as a kind/lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected.

    Affected packages

    Package

    Name: django

    Purl: pkg:pypi/django

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 3.2a1
    Fixed -3.2.14

    Affected versions

    3.2
    3.2.1
    3.2.10
    3.2.11
    3.2.12
    3.2.13
    3.2.2
    3.2.3
    3.2.4
    3.2.5
    3.2.6
    3.2.7
    3.2.8
    3.2.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-p64x-8rxx-wf6q | CVE-DB