Skip to content

CVE-2019-9854 Unsafe URL assembly flaw in allowed script location check

HighCVSS 7.8 EPSS 1.8%
Published
Updated
Exploit status
No public exploit known

Description

LibreOffice has a feature where documents can specify that pre-installed macros can be executed on various script events such as mouse-over, document-open etc. Access is intended to be restricted to scripts under the share/Scripts/python, user/Scripts/python sub-directories of the LibreOffice install. Protection was added, to address CVE-2019-9852, to avoid a directory traversal attack where scripts in arbitrary locations on the file system could be executed by employing a URL encoding attack to defeat the path verification step. However this protection could be bypassed by taking advantage of a flaw in how LibreOffice assembled the final script URL location directly from components of the passed in path as opposed to solely from the sanitized output of the path verification step. This issue affects: Document Foundation LibreOffice 6.2 versions prior to 6.2.7; 6.3 versions prior to 6.3.1.

Affected products

ProductAffected versionsFixed in
debian/libreoffice(Debian:12) < 1:6.3.1~rc2-1 1:6.3.1~rc2-1
debian/libreoffice(Debian:13) < 1:6.3.1~rc2-1 1:6.3.1~rc2-1
debian/libreoffice(Debian:14) < 1:6.3.1~rc2-1 1:6.3.1~rc2-1
libreoffice >= 6.2.0, < 6.2.7 6.2.7
libreoffice >= 6.3.0, < 6.3.1 6.3.1
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 18.04 No fix listed
Canonical Ubuntu Linux = 19.04 No fix listed
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed
debian linux = 10.0 No fix listed
fedoraproject fedora = 29 No fix listed
openSUSE leap = 15.0 No fix listed
openSUSE leap = 15.1 No fix listed
redhat enterprise linux = 7.0 No fix listed
redhat enterprise linux = 8.0 No fix listed
Document Foundation LibreOffice >= 6.2, < 6.2.7 6.2.7
Document Foundation LibreOffice >= 6.3, < 6.3.1 6.3.1
alpine/libreoffice(Alpine:v3.10) >= 6.2.0, < 6.2.7.1-r0 6.2.7.1-r0
alpine/libreoffice(Alpine:v3.11) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.12) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.13) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.14) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.15) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.16) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
Show 8 more
ProductAffected versionsFixed in
alpine/libreoffice(Alpine:v3.17) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.18) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.19) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.20) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.21) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.22) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.23) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0
alpine/libreoffice(Alpine:v3.24) >= 6.3.0, < 6.3.1.2-r0 6.3.1.2-r0

References