CVE-2020-19475
Description
An issue has been found in function CCITTFaxStream::lookChar in PDF2JSON 0.70 that allows attackers to cause a Denial of Service due to an invalid write of size 2 .
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A heap-based invalid write of size 2 in PDF2JSON 0.70's CCITTFaxStream::lookChar causes denial of service via crafted PDF.
Vulnerability
The issue is in the CCITTFaxStream::lookChar function of PDF2JSON version 0.70 (commit b671b64). An attacker can trigger an invalid write of size 2 to heap memory by providing a specially crafted PDF file. This occurs during the parsing of CCITT fax-encoded image streams [1].
Exploitation
An attacker needs only to deliver a malformed PDF file that triggers the vulnerable code path. When PDF2JSON processes the file (e.g., via pdf2json $PoC /dev/null), the call chain from Page::display through Gfx::display, Parser::getObj, Lexer::getChar, and Object::streamGetChar reaches CCITTFaxStream::getChar, which calls lookChar. The function then performs an invalid write of size 2, as reproduced with Valgrind [1]. No special authentication or network position beyond file delivery is required.
Impact
Successful exploitation causes a segmentation fault (SEGV) and denial of service. The crash occurs due to writing to an invalid heap address, likely corrupting memory and terminating the application. No code execution or data exfiltration is described in the available references [1].
Mitigation
As of the latest published information, no official patch has been released. The issue is tracked on GitHub [1], and users should monitor the project for updates. Until a fix is available, avoid processing untrusted PDF files with PDF2JSON 0.70.
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- PDF2JSON/PDF2JSONdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
1- github.com/flexpaper/pdf2json/issues/36mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.