Security mailing lists by PureSourceCode

CVE-2024-53908

CRITICAL 9.8CVSS 3.1

Django SQL injection in HasKey(lhs, rhs) on Oracle

An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. Direct usage of the django.db.models.fields.json.HasKey lookup, when an Oracle database is used, is subject to SQL injection if untrusted data is used as an lhs value. (Applications that use the jsonfield.has_key lookup via __ are unaffected.)

Published
6 Dec 2024
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Analyzed
Weakness
CWE-89
Also known as
BIT-django-2024-53908GHSA-m9g8-fxxm-xg86PYSEC-2024-157
Sources
NVDJSONOSV GHSA-m9g8-fxxm-xg86JSONOSV PYSEC-2024-157JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
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.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 4.2, < 4.2.17 4.2.17
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 5.0, < 5.0.10 5.0.10
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 5.1, < 5.1.4 5.1.4
OSV PyPI django >= 5.0.0, < 5.0.10 5.0.10
OSV PyPI django >= 5.1.0, < 5.1.4 5.1.4
OSV PyPI django >= 4.2.0, < 4.2.17 4.2.17
OSV PyPI django >= 5.1, < 5.1.4 5.1.4
OSV PyPI django >= 5.0, < 5.0.10 5.0.10
OSV PyPI django >= 4.2, < 4.2.17 4.2.17
OSV PyPI django >= 5.1, < 5.1.4; >= 5.0, < 5.0.10; >= 4.2, < 4.2.17 5.1.4, 5.0.10, 4.2.17

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 6 Dec 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Dec 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Dec 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.