CVE-2019-9854
Unsafe URL assembly flaw in allowed script location check
Reported by document fdn. · Published September 6, 2019
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libreoffice | Alpine | 6.3.1.2-r0, 6.2.7.1-r0 |
| libreoffice | libreoffice | 6.3.1, 6.2.7 |
| libreoffice | Ubuntu:18.04:LTS | 1:6.0.7-0ubuntu0.18.04.10 |
| LibreOffice | Document Foundation | 6.3.1, 6.2.7 |
| libreoffice | Ubuntu:16.04:LTS | 1:5.1.6~rc2-0ubuntu1~xenial10 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Document Foundation | LibreOffice | 6.2, 6.3 |
| Document Foundation | LibreOffice | 6.2, 6.3 |
| alpine | libreoffice | 0, 0 |
Timeline
- Sep 6, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 16, 2024 CVE Updated
- Mar 6, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 6, 2026 Security Advisory (9 in total, the first dated here)
- Sep 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-9854
vulnetix vdb fixes CVE-2019-9854
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-9854/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- DSA-4519 vendor-advisoryx_refsource_DEBIAN
- 20190910 [SECURITY] [DSA 4519-1] libreoffice security update mailing-listx_refsource_BUGTRAQ
- FEDORA-2019-9627e1402e vendor-advisoryx_refsource_FEDORA
- USN-4138-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:2183 vendor-advisoryx_refsource_SUSE
- [debian-lts-announce] 20191006 [SECURITY] [DLA 1947-1] libreoffice security update mailing-listx_refsource_MLIST
- openSUSE-SU-2019:2361 vendor-advisoryx_refsource_SUSE