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).
{
"license": "CC-BY-4.0",
"sources": [
{
"imported": "2026-04-13T04:14:33.172Z",
"id": "CVE-2022-38171",
"published": "2022-08-22T19:15:11.060Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2022-38171",
"modified": "2024-11-21T07:15:56.110Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-38171"
}
]
}