In DjVuLibre 3.5.27, the sorting functionality (aka GArrayTemplate<TYPE>::sort) allows attackers to cause a denial-of-service (application crash due to an Uncontrolled Recursion) by crafting a PBM image file that is mishandled in libdjvu/GContainer.h.
https://sourceforge.net/p/djvu/bugs/299/
https://sourceforge.net/p/djvu/djvulibre-git/ci/e15d51510048927f172f1bf1f27ede65907d940d/
https://lists.debian.org/debian-lts-announce/2019/08/msg00036.html
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00086.html
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00087.html
https://usn.ubuntu.com/4198-1/
https://security.gentoo.org/glsa/202007-36
https://lists.debian.org/debian-lts-announce/2021/05/msg00022.html
Source: MITRE
Published: 2019-08-18
Updated: 2022-03-29
Type: CWE-674
Base Score: 4.3
Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P
Impact Score: 2.9
Exploitability Score: 8.6
Severity: MEDIUM
Base Score: 5.5
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Impact Score: 3.6
Exploitability Score: 1.8
Severity: MEDIUM