Bug 1539989 (CVE-2017-12626)

Summary: CVE-2017-12626 poi: Parsing of multiple file types can cause a denial of service via infinite loop or out of memory exception
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aileenc, alazarot, anstephe, chazlett, drieden, etirelli, gvarsami, ibek, java-sig-commits, jcoleman, jolee, jschatte, jstastny, kconner, kverlaen, ldimaggi, lef, lpetrovi, nwallace, paradhya, rrajasek, rsynek, rwagner, rzhang, sdaley, tcunning, tkirby, vhalbert
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: apache-poi 3.17 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:38:44 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: 1539990, 1540098, 1541351    
Bug Blocks: 1539991    

Description Sam Fowler 2018-01-30 01:58:34 UTC
Apache POI versions prior to release 3.17 are vulnerable to Denial of Service (DoS) attacks caused by multiple bugs in parsing specially crafted files.

Parsing of WMF, EMF, MSG files and macros can lead to infinite loops, while parsing DOC, PPT and XLS files can cause out of memory exceptions.

External References:
https://nvd.nist.gov/vuln/detail/CVE-2017-12626
https://lists.apache.org/thread.html/453d9af5dbabaccd9afb58d27279a9dbfe8e35f4e5ea1645ddd6960b@%3Cdev.poi.apache.org%3E

Comment 1 Sam Fowler 2018-01-30 02:01:05 UTC
Created apache-poi tracking bugs for this issue:

Affects: fedora-all [bug 1539990]

Comment 2 Tomas Hoger 2018-02-02 10:54:05 UTC
According to the upstream announcement, this CVE covers 4 issues tracked in the following upstream bugs.  Upstream commits relevant to each upstream bug report are also listed:

Avoid infinite loop in corrupt wmf
https://bz.apache.org/bugzilla/show_bug.cgi?id=61338
https://svn.apache.org/viewvc?view=revision&revision=1802997

IOUtils.skipFully can run into infinite loop
https://bz.apache.org/bugzilla/show_bug.cgi?id=61294
https://svn.apache.org/viewvc?view=revision&revision=1801952
https://svn.apache.org/viewvc?view=revision&revision=1806162

OutOfMemoryError parsing a word file
https://bz.apache.org/bugzilla/show_bug.cgi?id=52372
https://svn.apache.org/viewvc?view=revision&revision=1793602

Vector.read -- Java heap space on corrupt file
https://bz.apache.org/bugzilla/show_bug.cgi?id=61295
https://svn.apache.org/viewvc?view=revision&revision=1802879

Comment 5 errata-xmlrpc 2018-05-03 19:05:19 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Fuse

Via RHSA-2018:1322 https://access.redhat.com/errata/RHSA-2018:1322