mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[5.1.x] Fixed CVE-2024-53908 -- Prevented SQL injections in direct HasKeyLookup usage on Oracle.
Thanks Seokchan Yoon for the report, and Mariusz Felisiak and Sarah Boyce for the reviews.
This commit is contained in:
committed by
Sarah Boyce
parent
bbc74a7f7e
commit
6943d61818
@@ -22,3 +22,12 @@ Remember that absolutely NO guarantee is provided about the results of
|
||||
``strip_tags()`` being HTML safe. So NEVER mark safe the result of a
|
||||
``strip_tags()`` call without escaping it first, for example with
|
||||
:func:`django.utils.html.escape`.
|
||||
|
||||
CVE-2024-53908: Potential SQL injection via ``HasKey(lhs, rhs)`` on Oracle
|
||||
==========================================================================
|
||||
|
||||
Direct usage of the ``django.db.models.fields.json.HasKey`` lookup on Oracle
|
||||
was subject to SQL injection if untrusted data was used as a ``lhs`` value.
|
||||
|
||||
Applications that use the :lookup:`has_key <jsonfield.has_key>` lookup through
|
||||
the ``__`` syntax are unaffected.
|
||||
|
||||
@@ -22,3 +22,12 @@ Remember that absolutely NO guarantee is provided about the results of
|
||||
``strip_tags()`` being HTML safe. So NEVER mark safe the result of a
|
||||
``strip_tags()`` call without escaping it first, for example with
|
||||
:func:`django.utils.html.escape`.
|
||||
|
||||
CVE-2024-53908: Potential SQL injection via ``HasKey(lhs, rhs)`` on Oracle
|
||||
==========================================================================
|
||||
|
||||
Direct usage of the ``django.db.models.fields.json.HasKey`` lookup on Oracle
|
||||
was subject to SQL injection if untrusted data was used as a ``lhs`` value.
|
||||
|
||||
Applications that use the :lookup:`has_key <jsonfield.has_key>` lookup through
|
||||
the ``__`` syntax are unaffected.
|
||||
|
||||
@@ -23,6 +23,15 @@ Remember that absolutely NO guarantee is provided about the results of
|
||||
``strip_tags()`` call without escaping it first, for example with
|
||||
:func:`django.utils.html.escape`.
|
||||
|
||||
CVE-2024-53908: Potential SQL injection via ``HasKey(lhs, rhs)`` on Oracle
|
||||
==========================================================================
|
||||
|
||||
Direct usage of the ``django.db.models.fields.json.HasKey`` lookup on Oracle
|
||||
was subject to SQL injection if untrusted data was used as a ``lhs`` value.
|
||||
|
||||
Applications that use the :lookup:`has_key <jsonfield.has_key>` lookup through
|
||||
the ``__`` syntax are unaffected.
|
||||
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
|
||||
Reference in New Issue
Block a user