Security advisory
An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-14232
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:09 UTC · Revision 1
Source evidence
An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
osv:CVE-2019-14232
Complete source record
{
"id": "6e5c31031fc1fb2e506314a5a628e4da0d744a30f8afd9d422a85c2b9f1ba4ac",
"url": "https://osv.dev/vulnerability/CVE-2019-14232",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-14232",
"summary": "An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.",
"evidence": "osv:CVE-2019-14232",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-14232",
"aliases": [
"CVE-2019-14232",
"GHSA-c4qh-4vgv-qc6g",
"PYSEC-2019-11"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/django/django",
"type": "GIT",
"events": [
{
"introduced": "c669cf279ae7b3e02a61db4fb077030a4db80e4f"
},
{
"fixed": "974897759e9afc4cc56fb87e12319fa9697e93c9"
},
{
"introduced": "df591468251ed489a3e147d7c359f387f4effe66"
},
{
"fixed": "ff9dcc0867eba90e9ab1b07a4b3eb79928717918"
},
{
"introduced": "2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"
},
{
"fixed": "8687fbe034ac5eec20e0948b98eb8a2f0b1431a1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.11"
},
{
"fixed": "1.11.23"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.1"
},
{
"fixed": "2.1.11"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2"
},
{
"fixed": "2.2.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-14232.json"
}
}
],
"modified": "2026-10-24T10:30:25.275226017Z",
"provider": "osv",
"references": [
"https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/",
"https://seclists.org/bugtraq/2019/Aug/15",
"https://security.gentoo.org/glsa/202004-17",
"https://security.netapp.com/advisory/ntap-20190828-0002/",
"https://www.debian.org/security/2019/dsa-4498",
"https://www.djangoproject.com/weblog/2019/aug/01/security-releases/",
"https://docs.djangoproject.com/en/dev/releases/security/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.1"
},
{
"last_affected": "15.1"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-14232",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 431318,
"published_at": "2019-08-02T15:15:11.88+00:00"
}