Bug 1649841 (CVE-2018-16858) - CVE-2018-16858 libreoffice: Arbitrary python functions in arbitrary modules on the filesystem can be executed without warning
Summary: CVE-2018-16858 libreoffice: Arbitrary python functions in arbitrary modules o...
Status: NEW
Alias: CVE-2018-16858
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Whiteboard: impact=moderate,public=20190201,repor...
Keywords: Security
Depends On: 1672003 1672002 1672004
Blocks: 1649844
TreeView+ depends on / blocked
Reported: 2018-11-14 15:50 UTC by Pedro Sampaio
Modified: 2019-06-14 09:12 UTC (History)
5 users (show)

It was found that libreoffice was vulnerable to a directory traversal attack which could be used to execute arbitrary macros bundled with a document. An attacker could craft a document, which when opened by LibreOffice, would execute a Python method from a script in any arbitrary file system location, specified relative to the LibreOffice install location.
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Pedro Sampaio 2018-11-14 15:50:45 UTC
A flaw was found in libreoffice. If a document does not contain macros/scripts, but references a pre-installed macro/script execution of those macros/scripts, execution is allowed without warning bypassing normal behavior.

Comment 1 Huzaifa S. Sidhpurwala 2018-11-21 08:03:05 UTC

Name: The LibreOffice project
Upstream: Alex Inführ

Comment 2 Huzaifa S. Sidhpurwala 2018-11-21 09:47:44 UTC
In versions of libreoffice shipped with Red Hat Enterprise Linux 6 and 7, arbitrary arguements cannot be passed to the scripts/macros, hence meaningful exploitation is difficult.

Comment 3 Huzaifa S. Sidhpurwala 2019-02-03 03:35:33 UTC
External References:


Comment 4 Huzaifa S. Sidhpurwala 2019-02-03 03:35:51 UTC
Created libreoffice tracking bugs for this issue:

Affects: fedora-all [bug 1672002]

Note You need to log in before you can comment on or make changes to this bug.