REDHAT-BUG-2392990: SQL Injection

Published Sep 3, 2025
·
Updated

An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the kwargs passed QuerySet.annotate() or QuerySet.alias().

Affected Software

3 affected components
Django Software Foundation Django<4.2.24
Django Software Foundation Django<5.1.12
Django Software Foundation Django<5.2.6

Event History

Sep 3, 2025
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2392990?

REDHAT-BUG-2392990 is classified as a medium severity SQL injection vulnerability affecting specific versions of Django.

2

How do I fix REDHAT-BUG-2392990?

To fix REDHAT-BUG-2392990, upgrade Django to version 4.2.24, 5.1.12, or 5.2.6 or later.

3

Which versions of Django are affected by REDHAT-BUG-2392990?

Django versions before 4.2.24, 5.1.12, and 5.2.6 are affected by REDHAT-BUG-2392990.

4

What is the nature of the vulnerability in REDHAT-BUG-2392990?

The vulnerability in REDHAT-BUG-2392990 is an SQL injection issue related to FilteredRelation and improper handling of column aliases.

5

How can REDHAT-BUG-2392990 potentially affect my application?

If exploited, REDHAT-BUG-2392990 could allow an attacker to execute arbitrary SQL code against the database, compromising data integrity and security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203