Description
Xpdf prior to version 4.04 contains an integer overflow in the JBIG2 decoder (JBIG2Stream::readTextRegionSeg() in JBIG2Stream.cc). Processing a specially crafted PDF file or JBIG2 image could lead to a crash or the execution of arbitrary code. This is similar to the vulnerability described by CVE-2021-30860 (Apple CoreGraphics).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ipe +1 | No fix yet | — |
| Ubuntu 26.04 LTS | ipe +1 | No fix yet | — |
| Ubuntu 25.10 | ipe +1 | No fix yet | — |
| Ubuntu 24.04 LTS | ipe +1 | No fix yet | — |
| Ubuntu 22.04 LTS | ipe +1 | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | ipe | No fix yet | — |
| Ubuntu 18.04 LTS | ipe +1 | No fix yet | — |
| Ubuntu 16.04 LTS | ipe +1 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | texlive-bin | No fix yet | — |
| Ubuntu Pro 18.04 LTS | texlive-bin | No fix yet | — |
| Ubuntu Pro 16.04 LTS | texlive-bin | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | xpdf | 4.04-r0 | — |
| Alpine v3.23 | xpdf | 4.04-r0 | — |
| Alpine v3.22 | xpdf | 4.04-r0 | — |
| Alpine v3.21 | xpdf | 4.04-r0 | — |
| Alpine v3.20 | xpdf | 4.04-r0 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | xpdf | 4.04-r0 | — |
Advisories 2
- WID-SEC-2023-1424 Xerox FreeFlow Print Server für Solaris: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2025
- WID-SEC-2022-1144 xpdf: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · May 6, 2024
References
- http://www.xpdfreader.com/security-fixes.html
- https://dl.xpdfreader.com/xpdf-4.04.tar.gz
- https://www.cve.org/CVERecord?id=CVE-2021-30860
- https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html
- https://github.com/jeffssh/CVE-2021-30860
- [oss-security] 20220902 JBIG2 integer overflow fixed in Xpdf 4.04, Poppler 22.09.0 mailing-list
- https://github.com/zmanion/Vulnerabilities/blob/main/CVE-2022-38171.md