Bug 1485847 (CVE-2017-12595)

Summary: CVE-2017-12595 qpdf: Stack overflow when processing deeply nested arrays and dictionaries
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jpopelka, twaugh, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:22:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1485849, 1485850    
Bug Blocks:    

Description Adam Mariš 2017-08-28 09:07:36 UTC
The tokenizer in QPDF 6.0.0 and 7.0.b1 is recursive for arrays and
dictionaries, which allows remote attackers to cause a denial of
service (stack consumption and segmentation fault) or possibly have
unspecified other impact via a PDF document with a deep data structure,
as demonstrated by a crash in QPDFObjectHandle::parseInternal in
libqpdf/QPDFObjectHandle.cc.

Upstream bug:

https://github.com/qpdf/qpdf/issues/146

Upstream patch:

https://github.com/qpdf/qpdf/commit/ad527a64f93dca12f6aabab2ca99ae5eb352ab4b

Comment 1 Adam Mariš 2017-08-28 09:08:55 UTC
Created qpdf tracking bugs for this issue:

Affects: epel-6 [bug 1485850]
Affects: fedora-all [bug 1485849]