CVE-2022-38171: Integer Overflow
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 Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2022-38171?
CVE-2022-38171 is a vulnerability in Xpdf prior to version 4.04 that contains an integer overflow in the JBIG2 decoder.
What is the severity of CVE-2022-38171?
CVE-2022-38171 has a severity of 7.8 (high).
Which software versions are affected by CVE-2022-38171?
Xpdf versions prior to 4.04 and freedesktop poppler versions up to 22.09.0 are affected by CVE-2022-38171.
How can processing a specially crafted PDF file or JBIG2 image lead to a crash or code execution?
Processing a specially crafted PDF file or JBIG2 image can trigger the integer overflow in the JBIG2 decoder, leading to a crash or the execution of arbitrary code.
Is there a fix for CVE-2022-38171?
Yes, upgrading to Xpdf version 4.04 or later will fix the vulnerability. For freedesktop poppler, upgrading to a version above 22.09.0 is recommended.