Vulnerability advisory
CVE-2023-43665
Also known as BIT-django-2023-43665GHSA-h8gc-pgj2-vjm3PYSEC-2023-226
Severity
Severity not reported.
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/django/django ↗ | |
| 3591e1c1acbd7c13174275367c3fdf012cb0413b to before 3106e94e52a0a7786d49803c86b3139df113d36d | 3106e94e52a0a7786d49803c86b3139df113d36d |
| 9fee86e44dd83dc968ec443adcde191b3eba1286 to before 865974ee933ac0648fabe4458136ce1ceec62192 | 865974ee933ac0648fabe4458136ce1ceec62192 |
| 97aa3b7f08f51669e118f3af5ca91026e39664c3 to before c22017bd1dddb5b57d8a179e6378ef0c8d7f5eeb | c22017bd1dddb5b57d8a179e6378ef0c8d7f5eeb |
Description
In Django 3.2 before 3.2.22, 4.1 before 4.1.12, and 4.2 before 4.2.6, the django.utils.text.Truncator chars() and words() methods (when used with html=True) are subject to a potential DoS (denial of service) attack via certain inputs with very long, potentially malformed HTML text. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which are thus also vulnerable. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232.
References
- Webdocs.djangoproject.com/en/4.2/releases/security/ ↗
- Webgroups.google.com/forum/#%21forum/django-announce ↗
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/ ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43665.json ↗
- Advisorylists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/ ↗
- Advisorylists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/ ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-43665 ↗
- Advisorysecurity.netapp.com/advisory/ntap-20231221-0001/ ↗
- ARTICLEwww.openwall.com/lists/oss-security/2024/03/04/1 ↗
- ARTICLEwww.djangoproject.com/weblog/2023/oct/04/security-releases/ ↗