UBUNTU-CVE-2024-42005

Source
https://ubuntu.com/security/CVE-2024-42005
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-42005.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-42005
Related
Published
2024-08-06T13:00:00Z
Modified
2024-10-25T16:30:49Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L 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.

References

Affected packages

Ubuntu:22.04:LTS / python-django

Package

Name
python-django
Purl
pkg:deb/ubuntu/python-django?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:3.2.12-2ubuntu1.13

Affected versions

2:2.*

2:2.2.24-1ubuntu1

2:3.*

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",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2:3.2.12-2ubuntu1.13",
            "binary_name": "python-django-doc"
        },
        {
            "binary_version": "2:3.2.12-2ubuntu1.13",
            "binary_name": "python3-django"
        }
    ]
}

Ubuntu:24.04:LTS / python-django

Package

Name
python-django
Purl
pkg:deb/ubuntu/python-django?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3:4.2.11-1ubuntu1.2

Affected versions

3:4.*

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",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3:4.2.11-1ubuntu1.2",
            "binary_name": "python-django-doc"
        },
        {
            "binary_version": "3:4.2.11-1ubuntu1.2",
            "binary_name": "python3-django"
        }
    ]
}