CVE-2019-9854 Unsafe URL assembly flaw in allowed script location check
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libreoffice(Debian:12) | < 1:6.3.1~rc2-1 | 1:6.3.1~rc2-1 |
| debian/libreoffice(Debian:13) | < 1:6.3.1~rc2-1 | 1:6.3.1~rc2-1 |
| debian/libreoffice(Debian:14) | < 1:6.3.1~rc2-1 | 1:6.3.1~rc2-1 |
| libreoffice | >= 6.2.0, < 6.2.7 | 6.2.7 |
| libreoffice | >= 6.3.0, < 6.3.1 | 6.3.1 |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 19.04 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| fedoraproject fedora | = 29 | No fix listed |
| openSUSE leap | = 15.0 | No fix listed |
| openSUSE leap | = 15.1 | No fix listed |
| redhat enterprise linux | = 7.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| Document Foundation LibreOffice | >= 6.2, < 6.2.7 | 6.2.7 |
| Document Foundation LibreOffice | >= 6.3, < 6.3.1 | 6.3.1 |
| alpine/libreoffice(Alpine:v3.10) | >= 6.2.0, < 6.2.7.1-r0 | 6.2.7.1-r0 |
| alpine/libreoffice(Alpine:v3.11) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.12) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.13) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.14) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.15) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.16) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/libreoffice(Alpine:v3.17) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.18) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.19) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.20) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.21) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.22) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.23) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
| alpine/libreoffice(Alpine:v3.24) | >= 6.3.0, < 6.3.1.2-r0 | 6.3.1.2-r0 |
References
- Debian Security Tracker CVE-2019-9854 vendor-advisory
- openSUSE-SU-2019:2183 third-party-advisory vendor-advisory
- openSUSE-SU-2019:2361 third-party-advisory vendor-advisory
- [debian-lts-announce] 20191006 [SECURITY] [DLA 1947-1] libreoffice security update mailing-list third-party-advisory
- FEDORA-2019-9627e1402e vendor-advisory
- 20190910 [SECURITY] [DSA 4519-1] libreoffice security update mailing-list third-party-advisory
- USN-4138-1 third-party-advisory vendor-advisory
- DSA-4519 third-party-advisory vendor-advisory
- www.libreoffice.org vendor-advisory
- bugzilla.redhat.com third-party-advisory
- security.alpinelinux.org vendor-advisory