VDB

CVE-2019-9854

CVE-2019-9854 PUBLISHED

Unsafe URL assembly flaw in allowed script location check

Reported by document fdn. · Published September 6, 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-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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
libreofficeAlpine6.3.1.2-r0, 6.2.7.1-r0
libreofficelibreoffice6.3.1, 6.2.7
libreofficeUbuntu:18.04:LTS1:6.0.7-0ubuntu0.18.04.10
LibreOfficeDocument Foundation6.3.1, 6.2.7
libreofficeUbuntu:16.04:LTS1:5.1.6~rc2-0ubuntu1~xenial10

Affected products

VendorProductVersions
Document FoundationLibreOffice6.2, 6.3
Document FoundationLibreOffice6.2, 6.3
alpinelibreoffice0, 0

Timeline

  • Sep 6, 2019 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Sep 16, 2024 CVE Updated
  • Mar 6, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (9 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-9854
vulnetix vdb fixes CVE-2019-9854

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-9854/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›