~ / search / GHSA-pv4p-cwwg-4rph

GHSA-pv4p-cwwg-4rph

Django SQL injection vulnerability

Source: GitHub Advisory Database (reviewed) Critical CVE-2024-42005

Packages

EcosystemPackageAffectedFixed in
PyPI Django >= 5.0, < 5.0.8 5.0.8
PyPI Django >= 4.2, < 4.2.15 4.2.15

Details

As written in the advisory (Markdown source, shown as plain text).

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

External links from the advisory. They lead to third-party sites.