CVE-2019-9852
Insufficient URL encoding flaw in allowed script location check
Reported by document fdn. · Published August 15, 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-2018-16858, to avoid a directory traversal attack where scripts in arbitrary locations on the file system could be executed. However this new protection could be bypassed by a URL encoding attack. In the fixed versions, the parsed url describing the script location is correctly encoded before further processing. This issue affects: Document Foundation LibreOffice versions prior to 6.2.6.
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.0.4-r0, 6.2.6.2-r0 |
| libreoffice | libreoffice | 6.2.6 |
| libreoffice | Ubuntu:16.04:LTS | 1:5.1.6~rc2-0ubuntu1~xenial9 |
| LibreOffice | Document Foundation | 6.2.6 |
| libreoffice | Ubuntu:18.04:LTS | 1:6.0.7-0ubuntu0.18.04.9 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Document Foundation | LibreOffice | unspecified |
| Document Foundation | LibreOffice | * |
| alpine | libreoffice | 0, 0 |
Timeline
- Aug 15, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 6, 2026 Security Advisory (8 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-9852
vulnetix vdb fixes CVE-2019-9852
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-9852/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- 20190815 [SECURITY] [DSA 4501-1] libreoffice security update mailing-listx_refsource_BUGTRAQ
- DSA-4501 vendor-advisoryx_refsource_DEBIAN
- FEDORA-2019-2fe22a3a2c vendor-advisoryx_refsource_FEDORA
- USN-4102-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:2057 vendor-advisoryx_refsource_SUSE
- 20190910 [SECURITY] [DSA 4519-1] libreoffice security update mailing-listx_refsource_BUGTRAQ
- openSUSE-SU-2019:2183 vendor-advisoryx_refsource_SUSE
- [debian-lts-announce] 20191006 [SECURITY] [DLA 1947-1] libreoffice security update mailing-listx_refsource_MLIST