Feed
5.9MEDIUM

CVE-2023-43665Django Denial-of-service in django.utils.text.Truncator

A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.5% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
1.5%
percentile 75%
Priority
24/100 low
how it is computed
Fix
Named by a source
CVE published 3 Nov 2023

Reference

None of the "Needs attention" rules apply right now.

EPSS 1.5% (+2) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected>= 3.2a1, < 3.2.22Fixed in3.2.22OSV (GHSA-h8gc-pgj2-vjm3)
    • Affected>= 4.1a1, < 4.1.12Fixed in4.1.12OSV (GHSA-h8gc-pgj2-vjm3)
    • Affected>= 4.2a1, < 4.2.6Fixed in4.2.6OSV (GHSA-h8gc-pgj2-vjm3)
    • Affected>= 3.2, < 3.2.22Fixed in3.2.22OSV (PYSEC-2023-226)
    • Affected>= 4.1, < 4.1.12Fixed in4.1.12OSV (PYSEC-2023-226)
    • Affected>= 4.2, < 4.2.6Fixed in4.2.6OSV (PYSEC-2023-226)

Confirmed facts

CVSS
5.9 MEDIUM (version 3.1)
Score from
GitHub Advisory Database (GHSA-h8gc-pgj2-vjm3)
Attack vector
network
Attack complexity
high
Privileges required
none
User interaction
none
Weakness
CWE-1284, CWE-400

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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.

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 46 min ago · osv 46 min ago · nvd 46 min ago · epss 45 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2023-43665, GHSA-h8gc-pgj2-vjm3, PYSEC-2023-226