← Vulnerability feed

Vulnerability record · CVE-2022-38171 · published 22 August 2022

CVE-2022-38171: Xpdfreader xpdf integer overflow vulnerability

Xpdfreader · Xpdf

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

7.8 CVSS 3.1 High EPSS 0.34% · top 75.0% CWE-190 · Integer overflow
7.8CVSS 3.1 base score
0.34%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
14References
17 Jun 2026Last modified by NVD

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

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-38171 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

7.8CVE-2021-30860Apple PDF integer overflow allows arbitrary code executionAn integer overflow in PDF processing was fixed by improved input validation in Apple iOS, iPadOS, macOS, watchOS and related PDF libraries (xpdf, po…KEVEPSS 76%analysed9.8CVE-2019-9631Freedesktop poppler out-of-bounds read vulnerabilityPoppler 0.74.0 has a heap-based buffer over-read in the CairoRescaleBox.cc downsample_row_box_filter function.EPSS 3.5%8.8CVE-2018-21009Freedesktop poppler integer overflow vulnerabilityPoppler before 0.66.0 has an integer overflow in Parser::makeStream in Parser.cc.EPSS 1.9%8.8CVE-2019-12293Freedesktop poppler out-of-bounds read vulnerabilityIn Poppler through 0.76.1, there is a heap-based buffer over-read in JPXStream::init in JPEG2000Stream.cc via data with inconsistent heights or width…EPSS 2.1%8.8CVE-2019-10872Freedesktop poppler out-of-bounds read vulnerabilityAn issue was discovered in Poppler 0.74.0. There is a heap-based buffer over-read in the function Splash::blitTransparent at splash/Splash.cc.EPSS 2.7%8.8CVE-2019-9543Freedesktop poppler vulnerabilityAn issue was discovered in Poppler 0.74.0. A recursive function call, in JBIG2Stream::readGenericBitmap() located in JBIG2Stream.cc, can be triggered…EPSS 3.3%8.8CVE-2019-9545Freedesktop poppler vulnerabilityAn issue was discovered in Poppler 0.74.0. A recursive function call, in JBIG2Stream::readTextRegion() located in JBIG2Stream.cc, can be triggered by…EPSS 1.8%8.8CVE-2019-9200Freedesktop poppler out-of-bounds write vulnerabilityA heap-based buffer underwrite exists in ImageStream::getLine() located at Stream.cc in Poppler 0.74.0 that can (for example) be triggered by sending…EPSS 3.5%

Source: NIST National Vulnerability Database (record CVE-2022-38171), CISA KEV, FIRST EPSS (scores of 2026-10-08). This page is refreshed as NVD updates the record.