All reports
Medium

libreoffice: Arbitrary python functions in arbitrary modules on the filesystem can be executed without warning

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-16858

Probability of exploitation in the next 30 days: 67.32%

FIRST EPSS · 2026-11-20

Description

It was found that libreoffice before versions 6.0.7 and 6.1.3 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.

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.