Bug 1425844 (CVE-2017-3157)

Summary: CVE-2017-3157 libreoffice: Arbitrary file disclosure in Calc and Writer
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: caolanm, dtardon, erack, mstahl, rdovell, r.rigby, sbergman
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libreoffice 5.1.6, libreoffice 5.2.5, libreoffice 5.3.0 Doc Type: If docs needed, set a value
Doc Text:
It was found that LibreOffice disclosed contents of a file specified in an embedded object's preview. An attacker could potentially use this flaw to expose details of a system running LibreOffice as an online service via a crafted document.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-18 05:23:03 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: 1435532, 1435533, 1435534, 1435535    
Bug Blocks: 1425845    

Description Andrej Nemec 2017-02-22 15:14:23 UTC
Embedded Objects in writer and calc can contain previews of their content. A document can be crafted which contains an embedded object that is a link to an existing file on the targets system. On load the preview of the embedded object will be updated to reflect the content of the file on the target system. In the case of LibreOffice used as an online service that preview of data on the target system could be used to expose details of the environment LibreOffice is running in. In the case of LibreOffice as a standard desktop application, the preview could be concealed in hidden sections and retrieved by the attacker if the document is saved and returned to sender.

External References:

http://www.libreoffice.org/about-us/security/advisories/cve-2017-3157/

Comment 7 errata-xmlrpc 2017-04-12 12:35:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0914 https://access.redhat.com/errata/RHSA-2017:0914

Comment 8 errata-xmlrpc 2017-04-18 05:06:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2017:0979 https://access.redhat.com/errata/RHSA-2017:0979

Comment 9 richard rigby 2017-05-10 10:49:34 UTC
this update appears to cause issues on libreoffice 4.3 / el6.

for example:

  * create a writer document
  * insert a formula
  * save and close the document
  * open the saved document in writer
  * edit the formula
  * the formula preview is replaced by 'object 1'.

i also tested impress, which also seems to have issues, but just doesn't display anything, rather than 'object 1'.

the formulas do seem to remain editable, though while testing, i think i managed to get to a state where this was not the case ...

things seem to work o.k. on libreoffice 5 / el7.

thanks,

richard