Skip to main content
← All vulnerabilities
CVE-2024-53908GHSA-M9G8-FXXM-XG86BIT-DJANGO-2024-53908PYSEC-2024-157

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.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.0.10, 5.1.4, 4.2.17
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.)

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • djangoPyPI

    From 5.0.0 · fixed in 5.0.10

  • djangoPyPI

    From 5.1.0 · fixed in 5.1.4

  • djangoPyPI

    From 4.2.0 · fixed in 4.2.17

  • djangoPyPI

    From 5.1 · fixed in 5.1.4

  • djangoPyPI

    From 5.0 · fixed in 5.0.10

  • djangoPyPI

    From 4.2 · fixed in 4.2.17

  • djangoPyPI

    From 5.1 · fixed in 5.1.4; From 5.0 · fixed in 5.0.10; From 4.2 · fixed in 4.2.17

References 3

docs.djangoproject.com

groups.google.com

openwall.com