Vulnerability · Published Jul 3, 2025 · Assigned by GitHub_M
CVE-2025-53367DjVuLibre OOB-Write Vulnerability in MMRDecoder
High 8.4
In plain English
A high-severity out-of-bounds write in DjVuLibre from DjvuNet. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | djvulibre | 3.5.28-2.1~deb12u1 | DSA-5960-1 |
| Debian:12 | djvulibre | 3.5.28-2.1~deb12u1 | DEBIAN-CVE-2025-53367 |
| Debian:13 | djvulibre | 3.5.28-2.1 | DEBIAN-CVE-2025-53367 |
| Debian:14 | djvulibre | 3.5.28-2.1 | DEBIAN-CVE-2025-53367 |
| Ubuntu:22.04:LTS | djvulibre | 3.5.28-2ubuntu0.22.04.1 | USN-7631-1 |
| Ubuntu:22.04:LTS | djvulibre | 3.5.28-2ubuntu0.22.04.1 | UBUNTU-CVE-2025-53367 |
| Ubuntu:24.04:LTS | djvulibre | 3.5.28-2ubuntu0.24.04.1 | USN-7631-1 |
| Ubuntu:24.04:LTS | djvulibre | 3.5.28-2ubuntu0.24.04.1 | UBUNTU-CVE-2025-53367 |
Affected products (as reported)
Weakness: CWE-787, CWE-125 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://securitylab.github.com/advisories/GHSL-2025-055_DjVuLibre/ x_refsource_CONFIRM
- https://github.blog/security/vulnerability-research/cve-2025-53367-an-exploitable-out-of-bounds-write-in-djvulibre x_refsource_MISC
- https://github.com/github/securitylab/tree/main/SecurityExploits/DjVuLibre/MMRDecoder_scanruns_CVE-2025-53367 x_refsource_MISC
- https://sourceforge.net/p/djvu/djvulibre-git/ci/33f645196593d70bd5e37f55b63886c31c82c3da x_refsource_MISC
- https://www.openwall.com/lists/oss-security/2025/07/03/1 x_refsource_MISC
- https://github.blog/security/vulnerability-research/cve-2025-53367-an-exploitable-out-of-bounds-write-in-djvulibre/ exploit
- https://lists.debian.org/debian-lts-announce/2025/07/msg00007.html
- http://www.openwall.com/lists/oss-security/2025/07/03/1
- http://www.openwall.com/lists/oss-security/2025/07/18/3