Feed
9.8CRITICAL

CVE-2024-53908Django SQL injection in HasKey(lhs, rhs) on Oracle

A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.9% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
1.9%
percentile 80%
Priority
27/100 medium
how it is computed
Fix
Named by a source
CVE published 6 Dec 2024

Reference

None of the "Needs attention" rules apply right now.

EPSS 1.9% (+2) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

  • django (PyPI): upgrade to 5.0.10 / 5.1.4 / 4.2.17 or later on your release line.

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected>= 5.0.0, < 5.0.10Fixed in5.0.10OSV (GHSA-m9g8-fxxm-xg86)
    • Affected>= 5.1.0, < 5.1.4Fixed in5.1.4OSV (GHSA-m9g8-fxxm-xg86)
    • Affected>= 4.2.0, < 4.2.17Fixed in4.2.17OSV (GHSA-m9g8-fxxm-xg86)
    • Affected>= 5.1, < 5.1.4Fixed in5.1.4OSV (PYSEC-2024-157)
    • Affected>= 5.0, < 5.0.10Fixed in5.0.10OSV (PYSEC-2024-157)
    • Affected>= 4.2, < 4.2.17Fixed in4.2.17OSV (PYSEC-2024-157)

Confirmed facts

CVSS
9.8 CRITICAL (version 3.1)
Score from
GitHub Advisory Database (GHSA-m9g8-fxxm-xg86)
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Weakness
CWE-89

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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.)

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 30 min ago · osv 30 min ago · nvd 2 h ago · epss 29 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2024-53908, GHSA-m9g8-fxxm-xg86, PYSEC-2024-157