Vulnerability · Published Aug 22, 2022 · Assigned by mitre
CVE-2022-38171
High 7.8
In plain English
A high-severity security flaw in the xpdf package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.3%top 72.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | xpdf | 4.04-r0 | ALPINE-CVE-2022-38171 |
| Alpine:v3.21 | xpdf | 4.04-r0 | ALPINE-CVE-2022-38171 |
| Alpine:v3.22 | xpdf | 4.04-r0 | ALPINE-CVE-2022-38171 |
| Alpine:v3.23 | xpdf | 4.04-r0 | ALPINE-CVE-2022-38171 |
| Alpine:v3.24 | xpdf | 4.04-r0 | ALPINE-CVE-2022-38171 |
| Ubuntu:22.04:LTS | ipe | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:24.04:LTS | ipe | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:25.10 | ipe | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:26.04:LTS | ipe | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:26.10 | ipe | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:22.04:LTS | texlive-bin | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:24.04:LTS | texlive-bin | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:25.10 | texlive-bin | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:26.04:LTS | texlive-bin | no fix listed | UBUNTU-CVE-2022-38171 |
| Ubuntu:26.10 | texlive-bin | no fix listed | UBUNTU-CVE-2022-38171 |
Affected products (as reported)
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