CVE-2019-9854
Unsafe URL assembly flaw in allowed script location check
- Published
- Updated
- Reserved
- Assigned by
- Document Fdn.
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 1.8% · top 22% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
- Unsafe URL assembly flaw in allowed script location check
- CWE-22 (opens in a new tab)All about CWE-22 and its CVEs
Affected products
Document Foundation · LibreOffice
- affected 6.2 – < 6.2.7
- affected 6.3 – < 6.3.1
References (8)
- https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9854/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-4519 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 20190910 [SECURITY] [DSA 4519-1] libreoffice security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- FEDORA-2019-9627e1402e (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- USN-4138-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- openSUSE-SU-2019:2183 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- [debian-lts-announce] 20191006 [SECURITY] [DLA 1947-1] libreoffice security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- openSUSE-SU-2019:2361 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2019-9854)Record last updated .