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

Published Sep 6, 2019
·
Updated

Last updated 25 August 2025

Other sources

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.

Launchpad

Affected Software

16 affected componentsFixes available
redhat/libreoffice<6.2.7
6.2.7
redhat/libreoffice<6.3.1
6.3.1
LibreOffice Libreoffice>=6.2.0<6.2.7
LibreOffice Libreoffice>=6.3.0<6.3.1
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Fedoraproject Fedora=29
openSUSE Leap=15.0
openSUSE Leap=15.1
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
debian/libreoffice
1:7.0.4-4+deb11u101:7.0.4-4+deb11u134:7.4.7-1+deb12u104:7.4.7-1+deb12u84:25.2.3-2+deb13u34:26.2.0-1

Event History

Sep 6, 2019
CVE Published
via MITRE·06:30 PM
Data Sourced
via MITRE·06:30 PM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Feb 23, 2026
Data Sourced
via Ubuntu·05:45 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·05:45 PM
Description
Data Sourced
via Debian·05:45 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2019-9854?

CVE-2019-9854 is a vulnerability in LibreOffice that allows documents to execute pre-installed macros.

2

How severe is CVE-2019-9854?

CVE-2019-9854 has a severity score of 7.8, which is considered high.

3

Which versions of LibreOffice are affected by CVE-2019-9854?

CVE-2019-9854 affects LibreOffice versions 6.0.7-0ubuntu0.18.04.10, 6.2.7-0ubuntu0.19.04.1, and 5.1.6~.

4

How can I fix CVE-2019-9854?

To fix CVE-2019-9854, update LibreOffice to version 6.1.5-3+deb10u7, 6.1.5-3+deb10u10, 7.0.4-4+deb11u7, 4:7.4.7-1, or 4:7.5.8~rc1-2.

5

Where can I find more information about CVE-2019-9854?

You can find more information about CVE-2019-9854 at the following references: http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.html, http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00055.html, https://bugzilla.redhat.com/show_bug.cgi?id=1769907.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203