CVE-2025-53367: GHSL-2025-055: OOB Write in MMRDecoder::scanruns() in DjVuLibre - CVE-2025-53367
DjVuLibre is a GPL implementation of DjVu, a web-centric format for distributing documents and images. Prior to version 3.5.29, the MMRDecoder::scanruns method is affected by an OOB-write vulnerability, because it does not check that the xr pointer stays within the bounds of the allocated buffer. This can lead to writes beyond the allocated memory, resulting in a heap corruption condition. An out-of-bounds read with pr is also possible for the same reason. This issue has been patched in version 3.5.29.
Other sources
MMRDecoder::scanruns() has an out-of-bounds write vulnerability which can cause memory corruption.
— GitHub Security Lab
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.27.1-5ubuntu0.1+esm3 - Upgrade
Upgrade
ubuntu/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.27.1-8ubuntu0.4+esm1 - Upgrade
Upgrade
ubuntu/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.27.1-14ubuntu0.1+esm1 - Upgrade
Upgrade
ubuntu/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.28-2ubuntu0.22.04.1 - Upgrade
Upgrade
ubuntu/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.28-2ubuntu0.24.04.1 - Upgrade
Upgrade
debian/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.28-2.1~deb12u1 - Upgrade
Upgrade
debian/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.28-2.1 - Upgrade
Upgrade
debian/djvulibreto a version that resolves this vulnerability.Fixed in 3.5.28-2.2~deb11u1Fixed in 3.5.28-2.1~deb12u1Fixed in 3.5.28-2.1 - Upgrade
Upgrade
DjVuLibreto a version that resolves this vulnerability.Fixed in 3.5.29
Event History
Frequently Asked Questions
What is the severity of CVE-2025-53367?
CVE-2025-53367 is classified as a high severity vulnerability due to its potential for exploitation through an out-of-bounds write.
How do I fix CVE-2025-53367?
To fix CVE-2025-53367, update DjVuLibre to version 3.5.29 or later, which addresses this vulnerability.
What type of vulnerability is CVE-2025-53367?
CVE-2025-53367 is an out-of-bounds write vulnerability affecting the MMRDecoder::scanruns method in DjVuLibre.
Which versions of DjVuLibre are affected by CVE-2025-53367?
CVE-2025-53367 affects all versions of DjVuLibre prior to version 3.5.29.
What impact does CVE-2025-53367 have on affected systems?
Exploitation of CVE-2025-53367 could lead to arbitrary code execution on systems running affected versions of DjVuLibre.