CVE-2019-9854 json
Unsafe URL assembly flaw in allowed script location check
published 2019-09-06 7 y ago modified 2026-06-17 4 mo ago also EUVD-2019-19210
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Document Foundation LibreOffice 6.2.7, 6.3.1
- libreoffice Debian 14, Debian 13, Debian 12 1:6.3.1~rc2-1
debian advisories DEBIAN-CVE-2019-9854
- libreoffice Ubuntu 16.04 LTS 1:5.1.6~rc2-0ubuntu1~xenial10
- libreoffice Ubuntu 18.04 LTS 1:6.0.7-0ubuntu0.18.04.10
ubuntu advisories UBUNTU-CVE-2019-9854
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libreoffice RHEL 8 1:6.0.6.1-20.el8
- autocorr-af RHEL 8 1:6.0.6.1-20.el8
- autocorr-bg RHEL 8 1:6.0.6.1-20.el8
- autocorr-ca RHEL 8 1:6.0.6.1-20.el8
- autocorr-cs RHEL 8 1:6.0.6.1-20.el8
- autocorr-da RHEL 8 1:6.0.6.1-20.el8
- autocorr-de RHEL 8 1:6.0.6.1-20.el8
- autocorr-en RHEL 8 1:6.0.6.1-20.el8
red hat advisories RHSA-2020:1598RHSA-2020:1151
- libreoffice SLE Workstation Extension 15 6.2.7.1-3.24.4
- libreoffice SLE Workstation Extension 15 SP1 6.2.7.1-8.10.1
- libreoffice SLED 12 SP4, SLE Workstation Extension 12 SP4, SLE Software Development Kit 12 SP4 6.2.7.1-43.56.3
suse advisories SUSE-SU-2019:2686-1SUSE-SU-2019:2402-1SUSE-SU-2019:2401-1
- libreoffice openSUSE Tumbleweed 7.1.5.2-3.13
- libreoffice openSUSE Leap 15.0 6.2.7.1-lp150.2.19.1
- libreoffice openSUSE Leap 15.1 6.2.7.1-lp151.3.6.1
opensuse advisories openSUSE-SU-2024:10983-1openSUSE-SU-2019:2361-1openSUSE-SU-2019:2183-1
- libreoffice Alpine 3.10 6.2.7.1-r0
- libreoffice Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 6.3.1.2-r0
alpine advisories ALPINE-CVE-2019-9854
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-9854 updated cvss 7.8
libreoffice: Unsafe URL assembly flaw in allowed script location check
-
Red Hat Enterprise Linux 6 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +60 moreaffected: no fix planned “Out of support scope”
-
Red Hat CodeReady Linux Builder (v. 8) libreoffice-sdk 6.0.6.1-20.el8, libreoffice-x11 6.0.6.1-20.el8, libreoffice-gtk2 6.0.6.1-20.el8 Red Hat Enterprise Linux AppStream (v. 8) autocorr-af 6.0.6.1-20.el8, autocorr-bg 6.0.6.1-20.el8, autocorr-ca 6.0.6.1-20.el8, autocorr-cs 6.0.6.1-20.el8, autocorr-da 6.0.6.1-20.el8, autocorr-de 6.0.6.1-20.el8, +96 morefixed: vendor fix RHSA-2020:1598
-
Red Hat Enterprise Linux Client (v. 7) autocorr-af 5.3.6.1-24.el7, autocorr-bg 5.3.6.1-24.el7, autocorr-ca 5.3.6.1-24.el7, autocorr-cs 5.3.6.1-24.el7, autocorr-da 5.3.6.1-24.el7, autocorr-de 5.3.6.1-24.el7, +51 more Red Hat Enterprise Linux Client Optional (v. 7) libreoffice 5.3.6.1-24.el7, libreoffice-bsh 5.3.6.1-24.el7, libreoffice-sdk 5.3.6.1-24.el7, libreoffice-glade 5.3.6.1-24.el7, libreoffice-rhino 5.3.6.1-24.el7, libreoffice-help-ar 5.3.6.1-24.el7, +48 more Red Hat Enterprise Linux Server Optional (v. 7) autocorr-af 5.3.6.1-24.el7, autocorr-bg 5.3.6.1-24.el7, autocorr-ca 5.3.6.1-24.el7, autocorr-cs 5.3.6.1-24.el7, autocorr-da 5.3.6.1-24.el7, autocorr-de 5.3.6.1-24.el7, +104 more Red Hat Enterprise Linux Workstation (v. 7) autocorr-af 5.3.6.1-24.el7, autocorr-bg 5.3.6.1-24.el7, autocorr-ca 5.3.6.1-24.el7, autocorr-cs 5.3.6.1-24.el7, autocorr-da 5.3.6.1-24.el7, autocorr-de 5.3.6.1-24.el7, +51 more Red Hat Enterprise Linux Workstation Optional (v. 7) libreoffice 5.3.6.1-24.el7, libreoffice-bsh 5.3.6.1-24.el7, libreoffice-sdk 5.3.6.1-24.el7, libreoffice-glade 5.3.6.1-24.el7, libreoffice-rhino 5.3.6.1-24.el7, libreoffice-help-ar 5.3.6.1-24.el7, +48 morefixed: vendor fix RHSA-2020:1151
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.76% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected products
- Document Foundation LibreOffice
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
debian.org
/security/2019/dsa-4519
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/XQKKOIY2DMZCXJINOLIQXD2NWISDKK3N/
vendor-advisory
-
usn.ubuntu.com
/4138-1/
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-09/msg00067.html
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-10/msg00055.html
vendor-advisory, third-party-advisory
-
libreoffice.org
/about-us/security/advisories/CVE-2019-9854/
vendor-advisory
-
seclists.org
/bugtraq/2019/Sep/17
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/10/msg00005.html
mailing-list, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1769907
third-party-advisory
Sources
- CVE List CVE-2019-9854
- NVD CVE-2019-9854
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.