#VU73888 Integer overflow in xpdf - CVE-2022-38171


Vulnerability identifier: #VU73888

Vulnerability risk: High

CVSSv4.0: 5.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-38171

CWE-ID: CWE-190

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
xpdf
Client/Desktop applications / Office applications

Vendor: Glyph & Cog

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow within the JBIG2 decoder in the JBIG2Stream::readTextRegionSeg() function in JBIG2Stream.cc. A remote attacker can pass a specially crafted PDF file or JBIG2 image to the application, trigger an integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Note, the vulnerability is related to #VU56067 (CVE-2021-30860).

Mitigation
Install updates from vendor's website.

Vulnerable software versions

xpdf: 4.00 - 4.03


External links
https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html
https://www.xpdfreader.com/security-fixes.html
https://www.openwall.com/lists/oss-security/2022/09/02/11
https://github.com/zmanion/Vulnerabilities/blob/main/CVE-2022-38171.md


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability