CVE-2023-41164: Django: CVE-2023-41164: Potential denial of service vulnerability in django.utils.encoding.uri_to_iri()

Published Sep 4, 2023
·
Updated

django.utils.encoding.uritoiri() was subject to potential denial of service attack via certain inputs with a very large number of Unicode characters.

https://www.djangoproject.com/weblog/2023/sep/04/security-releases/

Other sources

In Django 3.2 before 3.2.21, 4.1 before 4.1.11, and 4.2 before 4.2.5, django.utils.encoding.uritoiri() is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.

— Ubuntu

Affected Software

29 affected componentsFixes available
ubuntu/python-django<3.2.21, <4.1.11, <4.2.5
3.2.214.1.114.2.5
ubuntu/python-django<2:2.2.12-1ubuntu0.19
2:2.2.12-1ubuntu0.19
ubuntu/python-django<2:3.2.12-2ubuntu1.8
2:3.2.12-2ubuntu1.8
ubuntu/python-django<3:3.2.18-1ubuntu0.4
3:3.2.18-1ubuntu0.4
ubuntu/python-django<1:1.11.11-1ubuntu1.21+
1:1.11.11-1ubuntu1.21+
ubuntu/python-django<3:4.2.4-1ubuntu1
3:4.2.4-1ubuntu1
pip/django>=4.2<4.2.5
4.2.5
pip/django>=4.1<4.1.11
4.1.11
pip/django>=3.2<3.2.21
3.2.21
djangoproject Django>=3.2<3.2.21
djangoproject Django>=4.1<4.1.11
djangoproject Django>=4.2<4.2.5
Fedoraproject Fedora=39
redhat/python-django<4.2.5
4.2.5
redhat/python-django<4.1.11
4.1.11
redhat/python-django<3.2.21
3.2.21
alpine/py3-django<4.2.5-r0
4.2.5-r0
alpine/py3-django<4.2.5-r0
4.2.5-r0
alpine/py3-django<4.2.5-r0
4.2.5-r0
alpine/py3-django<4.2.5-r0
4.2.5-r0
alpine/py3-django<4.2.5-r0
4.2.5-r0
alpine/py3-django<4.2.5-r0
4.2.5-r0
alpine/py3-django<4.2.5-r0
4.2.5-r0
debian/python-django
1:1.11.29-1+deb10u102:2.2.28-1~deb11u73:3.2.25-0+deb12u13:3.2.21-1
ubuntu/python-django*
ubuntu/python-django*
ubuntu/python-django<1:1.11.11-1ubuntu1.21+esm2
1:1.11.11-1ubuntu1.21+esm2
ubuntu/python-django<2:2.2.12-1ubuntu0.19
2:2.2.12-1ubuntu0.19
ubuntu/python-django<2:3.2.12-2ubuntu1.8
2:3.2.12-2ubuntu1.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/python-django to a version that resolves this vulnerability.

    Fixed in 3.2.21Fixed in 4.1.11Fixed in 4.2.5
  2. Upgrade

    Upgrade ubuntu/python-django to a version that resolves this vulnerability.

    Fixed in 2:2.2.12-1ubuntu0.19
  3. Upgrade

    Upgrade ubuntu/python-django to a version that resolves this vulnerability.

    Fixed in 2:3.2.12-2ubuntu1.8
  4. Upgrade

    Upgrade ubuntu/python-django to a version that resolves this vulnerability.

    Fixed in 3:3.2.18-1ubuntu0.4
  5. Upgrade

    Upgrade ubuntu/python-django to a version that resolves this vulnerability.

    Fixed in 1:1.11.11-1ubuntu1.21+
  6. Upgrade

    Upgrade ubuntu/python-django to a version that resolves this vulnerability.

    Fixed in 3:4.2.4-1ubuntu1
  7. Upgrade

    Upgrade pip/django to a version that resolves this vulnerability.

    Fixed in 4.2.5
  8. Upgrade

    Upgrade pip/django to a version that resolves this vulnerability.

    Fixed in 4.1.11
  9. Upgrade

    Upgrade pip/django to a version that resolves this vulnerability.

    Fixed in 3.2.21
  10. Upgrade

    Upgrade redhat/python-django to a version that resolves this vulnerability.

    Fixed in 4.2.5
  11. Upgrade

    Upgrade redhat/python-django to a version that resolves this vulnerability.

    Fixed in 4.1.11
  12. Upgrade

    Upgrade redhat/python-django to a version that resolves this vulnerability.

    Fixed in 3.2.21
  13. Upgrade

    Upgrade alpine/py3-django to a version that resolves this vulnerability.

    Fixed in 4.2.5-r0
  14. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 1:1.11.29-1+deb10u10Fixed in 2:2.2.28-1~deb11u7Fixed in 3:3.2.25-0+deb12u1Fixed in 3:3.2.21-1
  15. Upgrade

    Upgrade ubuntu/python-django to a version that resolves this vulnerability.

    Fixed in 1:1.11.11-1ubuntu1.21+esm2
  16. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 3.2.21
  17. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 4.1.11
  18. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 4.2.5

Event History

Sep 4, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·11:00 AM
DescriptionSeverityAffected Software
Nov 3, 2023
CVE Published
via MITRE·12:00 AM
Advisory Published
06:36 AM
Advisory Published
07:32 PM
Nov 13, 2023
Data Sourced
03:32 PM
Weakness
Nov 14, 2023
Data Sourced
via Red Hat·12:41 PM
DescriptionSeverityAffected Software
Updated
09:48 PM
Weakness
Dec 14, 2023
Updated
10:15 AM
Affected Software
Apr 20, 2024
Data Sourced
via MITRE·03:06 AM
Description
Data Sourced
via NVD·03:15 AM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·03:15 AM
Affected Software
Sep 20, 2024
Data Sourced
via GitHub·03:08 PM
DescriptionSeverityWeaknessAffected Software
Nov 4, 2025
Updated
via NVD·06:15 PM
Affected Software
Jun 17, 2026
Updated
via NVD·06:20 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID of this potential denial of service vulnerability?

The vulnerability ID is CVE-2023-41164.

2

What is the severity level of CVE-2023-41164?

The severity level of CVE-2023-41164 is medium.

3

Which software versions are affected by CVE-2023-41164?

Software versions 4.2.5, 4.1.11, 3.2.21, 2:2.2.12-1ubuntu0.19, 2:3.2.12-2ubuntu1.8, 3:3.2.18-1ubuntu0.4, and 1:1.11.29-1+deb10u10 are affected by CVE-2023-41164.

4

How can I fix CVE-2023-41164?

To fix CVE-2023-41164, upgrade to version 4.2.5, 4.1.11, 3.2.21, 2:2.2.12-1ubuntu0.19, 2:3.2.12-2ubuntu1.8, 3:3.2.18-1ubuntu0.4, or 1:1.11.29-1+deb10u10 of python-django.

5

Where can I find more information about CVE-2023-41164?

You can find more information about CVE-2023-41164 in the following references: [link1](https://www.openwall.com/lists/oss-security/2023/09/04/1), [link2](https://www.djangoproject.com/weblog/2023/sep/04/security-releases/), [link3](https://github.com/django/django/commit/3f41d6d62929dfe53eda8109b3b836f26645bdce).

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