Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-9854

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-9854
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:38 UTC · Revision 1

Source evidence

CVE-2019-9854

core-osv · Original source

Published 6 Sept 2019, 19:15 UTC

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.

osv:CVE-2019-9854
Complete source record
{
  "id": "0710820379a0554d856e8c2401a5efe369ffbc6d042e0a543bd197f3028620c7",
  "url": "https://osv.dev/vulnerability/CVE-2019-9854",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-9854",
    "summary": "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.",
    "evidence": "osv:CVE-2019-9854",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2019-9854",
      "aliases": [
        "CVE-2019-9854"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libreoffice/core",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a7004eb475ad8836d2e5c783805e32323b86cbe6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.2.0"
                      },
                      {
                        "fixed": "6.2.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "cp-6.2-5",
            "CP-Android-iOS-4.2.0",
            "cp-6.2-4",
            "CODE-4.2.0-4",
            "cp-6.2-3",
            "CODE-4.2.0-3",
            "CODE-4.2.0-2",
            "co-6.2-2",
            "CODE-4.2.0-1",
            "co-6.2-1",
            "cp-6.2-branch-point",
            "libreoffice-6-2-branch-point",
            "libreoffice-6-1-branch-point",
            "libreoffice-6-0-branch-point",
            "gpg4libre-review-5.4.99",
            "libreoffice-5-4-branch-point",
            "libreoffice-5-3-branch-point",
            "libreoffice-5-2-branch-point",
            "libreoffice-5-1-branch-point",
            "libreoffice-5-0-branch-point",
            "libreoffice-4-4-branch-point",
            "libreoffice-4-3-branch-point",
            "sdremote-2.0.0",
            "libreoffice-4-2-branch-point",
            "libreoffice-4-2-milestone-1",
            "libreoffice-4-1-branch-point",
            "libreoffice-4-0-branch-point",
            "libreoffice-3-6-branch-point",
            "libreoffice-3.5.0.0",
            "libreoffice-3-5-branch-point",
            "windows_build_successful_2011_11_08",
            "MELD_LIBREOFFICE_REPOS"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-9854.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:42.466597412Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQKKOIY2DMZCXJINOLIQXD2NWISDKK3N/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1769907",
        "https://lists.debian.org/debian-lts-announce/2019/10/msg00005.html",
        "https://seclists.org/bugtraq/2019/Sep/17",
        "https://usn.ubuntu.com/4138-1/",
        "https://www.debian.org/security/2019/dsa-4519",
        "https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9854/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "libreoffice:libreoffice",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.3.0"
                  },
                  {
                    "fixed": "6.3.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "19.04"
                  },
                  {
                    "last_affected": "19.04"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  },
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "29"
                  },
                  {
                    "last_affected": "29"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "15.0"
                  },
                  {
                    "last_affected": "15.0"
                  },
                  {
                    "introduced": "15.1"
                  },
                  {
                    "last_affected": "15.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-9854",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 435387,
  "published_at": "2019-09-06T19:15:11.997+00:00"
}