Vulnerability · Published Nov 3, 2023 · Assigned by mitre

CVE-2023-43665

High 7.5

In plain English

A high-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)1.5%top 26.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-django4.2.6-r0ALPINE-CVE-2023-43665
Alpine:v3.21py3-django4.2.6-r0ALPINE-CVE-2023-43665
Alpine:v3.22py3-django4.2.6-r0ALPINE-CVE-2023-43665
Alpine:v3.23py3-django4.2.6-r0ALPINE-CVE-2023-43665
Alpine:v3.24py3-django4.2.6-r0ALPINE-CVE-2023-43665
Debian:12python-django3:3.2.25-0+deb12u1DEBIAN-CVE-2023-43665
Debian:12python-django3:3.2.25-0+deb12u1DSA-6136-1
Debian:13python-django3:4.2.6-1DEBIAN-CVE-2023-43665
Debian:14python-django3:4.2.6-1DEBIAN-CVE-2023-43665
PyPIdjango3.2.22, 4.1.12, 4.2.6PYSEC-2023-226
PyPIdjango4.2.6GHSA-h8gc-pgj2-vjm3
PyPIdjango4.1.12GHSA-h8gc-pgj2-vjm3
PyPIdjango3.2.22GHSA-h8gc-pgj2-vjm3
Ubuntu:22.04:LTSpython-django2:3.2.12-2ubuntu1.9USN-6414-1
Ubuntu:22.04:LTSpython-django2:3.2.12-2ubuntu1.9UBUNTU-CVE-2023-43665
Ubuntu:24.04:LTSpython-django3:4.2.4-1ubuntu2UBUNTU-CVE-2023-43665

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References