4.1.12.txt 1.1 KB

12345678910111213141516171819202122232425
  1. ===========================
  2. Django 4.1.12 release notes
  3. ===========================
  4. *October 4, 2023*
  5. Django 4.1.12 fixes a security issue with severity "moderate" in 4.1.11.
  6. CVE-2023-43665: Denial-of-service possibility in ``django.utils.text.Truncator``
  7. ================================================================================
  8. Following the fix for :cve:`2019-14232`, the regular expressions used in the
  9. implementation of ``django.utils.text.Truncator``'s ``chars()`` and ``words()``
  10. methods (with ``html=True``) were revised and improved. However, these regular
  11. expressions still exhibited linear backtracking complexity, so when given a
  12. very long, potentially malformed HTML input, the evaluation would still be
  13. slow, leading to a potential denial of service vulnerability.
  14. The ``chars()`` and ``words()`` methods are used to implement the
  15. :tfilter:`truncatechars_html` and :tfilter:`truncatewords_html` template
  16. filters, which were thus also vulnerable.
  17. The input processed by ``Truncator``, when operating in HTML mode, has been
  18. limited to the first five million characters in order to avoid potential
  19. performance and memory issues.