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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2019-09-06 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2019-9854, USN-4138-1, DEBIAN-CVE-2019-9854, DSA-4519-1, ALPINE-CVE-2019-9854
- Record: https://cvemate.com/vulnerability/CVE-2019-9854 · JSON: https://cvemate.com/vulnerability/CVE-2019-9854/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.756%, percentile 78.729%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libreoffice (Alpine Linux): ≥ 6.2.0, \< 6.3.1.2-r0 \| ≥ 6.2.0, \< 6.2.7.1-r0 \| ≥ 6.3.0, \< 6.3.1.2-r0
- canonical ubuntu\_linux: 16.04 \| 18.04 \| 19.04
- debian libreoffice (Debian): \< 1:6.3.1~rc2-1 \| \< 1:5.2.7-1+deb9u11 \| \< 1:6.1.5-3+deb10u4
- ubuntu libreoffice (Ubuntu): \< 1:5.1.6~rc2-0ubuntu1~xenial10 \| \< 1:6.0.7-0ubuntu0.18.04.10
- debian debian\_linux: 8.0 \| 9.0 \| 10.0
- document foundation libreoffice: ≥ 6.2, \< 6.2.7 \| ≥ 6.3, \< 6.3.1
- fedoraproject fedora: 29
- libreoffice libreoffice: ≥ 6.2.0, \< 6.2.7 \| ≥ 6.3.0, \< 6.3.1
- opensuse leap: 15.0 \| 15.1
- redhat enterprise\_linux: 7.0 \| 8.0

## References

- <https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9854/>
- <https://www.debian.org/security/2019/dsa-4519>
- <https://seclists.org/bugtraq/2019/Sep/17>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQKKOIY2DMZCXJINOLIQXD2NWISDKK3N/>
- <https://usn.ubuntu.com/4138-1/>
- <http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.html>
- <https://lists.debian.org/debian-lts-announce/2019/10/msg00005.html>
- <http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00055.html>
- <https://ubuntu.com/security/CVE-2019-9854>
- <https://ubuntu.com/security/notices/USN-4138-1>
- <https://www.cve.org/CVERecord?id=CVE-2019-9854>
- <https://security-tracker.debian.org/tracker/CVE-2019-9854>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1769907>
- <https://security.alpinelinux.org/vuln/CVE-2019-9854>

---

Data as of 2026-12-05T04:58:33.282Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
