# CVE-2022-38171: Xpdf prior to version 4.04 contains an integer overflow in the JBIG2 decoder (JBIG2Stream::readTextRegionSeg() in JBIG2Stream.cc).

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2022-08-22T18:33:47.097Z
- Modified: 2026-06-17T04:56:13.920Z
- Weaknesses: CWE-190
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- xpdfreader xpdf: 4.04
- freedesktop poppler: before 22.09.0

## References

- <http://www.xpdfreader.com/security-fixes.html> (vendor-advisory)
- <https://dl.xpdfreader.com/xpdf-4.04.tar.gz> (vendor-advisory)
- <https://www.cve.org/CVERecord?id=CVE-2021-30860> (third-party-advisory)
- <https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html> (third-party-advisory)
- <https://github.com/jeffssh/CVE-2021-30860> (third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2022/09/02/11> (mailing-list, third-party-advisory)
- <https://github.com/zmanion/Vulnerabilities/blob/main/CVE-2022-38171.md> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-38171](https://www.cve.org/CVERecord?id=CVE-2022-38171), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2022-38171](https://nvd.nist.gov/vuln/detail/CVE-2022-38171), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-38171 · Whole record: https://cve.day/CVE-2022-38171.json · Rebuilt by cve.day 2026-11-25T22:58:14.382Z
