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...
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:
Depends On: 1672002 1672003 1672004 1743475
Blocks: 1649844
TreeView+ depends on / blocked
Reported: 2018-11-14 15:50 UTC by Pedro Sampaio
Modified: 2019-09-29 15:02 UTC (History)
8 users (show)

Fixed In Version: libreoffice 6.0.7, libreoffice 6.1.3
Doc Type: If docs needed, set a value
Doc Text:
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: 2019-08-08 19:18:17 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:2130 None None None 2019-08-06 12:18:44 UTC

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]

Comment 6 errata-xmlrpc 2019-08-06 12:18:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2019:2130 https://access.redhat.com/errata/RHSA-2019:2130

Comment 7 Product Security DevOps Team 2019-08-08 19:18:17 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Comment 9 msiddiqu 2019-08-16 17:57:32 UTC
@Huzaifa ^^

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