CVE-2019-9852: Insufficient URL encoding flaw in allowed script location check
Vulnerability summary
CVE-2019-9852 is a high (CVSS 7.8) Improper Encoding or Escaping of Output vulnerability in canonical ubuntu_linux. EPSS estimates a 1.75% chance of exploitation in the next 30 days, higher than 78.6% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 6Timeline
- 15-08-2019PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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-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.
CVSS metrics
6 scores · 4 sources · 3 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.75%
Chance of exploitation in the next 30 days
Percentile
79%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.75% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
- CWE-22Improper Limitation of a Pathname to a Restricted DirectoryThe product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- libreoffice< 1:6.3.0-1
- debian_linuxEOL8.0 | 9.0 | 10.0
Alpine1 product
- libreoffice< 6.2.6.2-r0 | < 6.3.0.4-r0
Canonical1 product
- ubuntu_linuxEOL16.04 | 18.04 | 19.04
Document foundation1 product
- libreoffice≥ unspecified, < 6.2.6
Fedoraproject1 product
- fedoraEOL29
Libreoffice1 product
- libreoffice< 6.2.6
Opensuse1 product
- leapEOL15.0 | 15.1
Ubuntu1 product
- libreoffice< 1:5.1.6~rc2-0ubuntu1~xenial9 | < 1:6.0.7-0ubuntu0.18.04.9
8 vendors · 9 products
References
15 links- www.libreoffice.org/about-us/security/advisories/CVE-2019-9852X Refsource MISCREPORTPatchVendor Advisory
- seclists.org/bugtraq/2019/Aug/28Mailing ListX Refsource BUGTRAQREPORTIssue TrackingThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2019-09/msg00006.htmlVendor AdvisoryX Refsource SUSEMailing ListThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.htmlVendor AdvisoryX Refsource SUSEMailing ListThird Party Advisory
- lists.debian.org/debian-lts-announce/2019/10/msg00005.htmlMailing ListX Refsource MLISTThird Party Advisory