Security mailing lists by PureSourceCode

CVE-2024-42005

HIGH 7.3CVSS 3.1

Django SQL injection vulnerability

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.

Published
7 Aug 2024
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-89
Also known as
BIT-django-2024-42005GHSA-pv4p-cwwg-4rphPYSEC-2024-70
Sources
NVDJSONOSV GHSA-pv4p-cwwg-4rphJSONOSV PYSEC-2024-70JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 4.2, < 4.2.15 4.2.15
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 5.0, < 5.0.8 5.0.8
OSV PyPI django >= 5.0, < 5.0.8 5.0.8
OSV PyPI django >= 4.2, < 4.2.15 4.2.15
OSV PyPI django >= 5.0, < 5.0.8; >= 4.2, < 4.2.15 5.0.8, 4.2.15

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 7 Aug 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Aug 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Aug 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.