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

24 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
3:3.2.25-0+deb12u33:3.2.25-0+deb12u63:4.2.28-0+deb13u23:4.2.28-0+deb13u13:5.2.17-23:5.2.19-1

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 3:3.2.25-0+deb12u3Fixed in 3:3.2.25-0+deb12u6Fixed in 3:4.2.28-0+deb13u2Fixed in 3:4.2.28-0+deb13u1Fixed in 3:5.2.17-2Fixed in 3:5.2.19-1
  15. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 3.2.21
  16. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 4.1.11
  17. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 4.2.5

Event History

Sep 4, 2023
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Red Hat·01:10 PM
DescriptionSeverityAffected Software
Nov 3, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·05:15 AM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·06:36 AM

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