CVE-2019-9851: LibreLogo global-event script execution
- Vendors
- Debian ProjectFedora ProjectLibreofficeOpensuseCanonical
CVE-2019-9851 is a script-execution vulnerability in LibreOffice before version 6.2.6. Protections introduced for CVE-2019-9848 blocked invocation of LibreLogo through document event script handlers but did not apply equivalent validation to global script event handlers. A crafted document can use global events, such as document-open, to invoke pre-installed scripts. Because LibreLogo can execute Python commands embedded in the document from which it is launched, this validation gap can result in arbitrary code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can cause arbitrary code execution by persuading a user to open a specially crafted document in a vulnerable LibreOffice installation. Execution occurs with the privileges of the LibreOffice process, potentially compromising data and resources accessible to that user.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid opening untrusted documents in affected LibreOffice installations, particularly where LibreLogo is installed. A vendor-confirmed workaround is not specified.
Remediation
Patch, then assume compromise.
Upgrade LibreOffice to version 6.2.6 or later, or install distribution packages containing the backported fix. Fixed versions validate global script event handlers equivalently to document script event handlers. Distribution fixes include Debian stretch 1:5.2.7-1+deb9u10, Debian buster 1:6.1.5-3+deb10u3, Debian Jessie 1:4.3.3-2+deb8u13, Fedora 29 6.1.6.3-3.fc29, Ubuntu 19.04 1:6.2.6-0ubuntu0.19.04.1, Ubuntu 18.04 LTS 1:6.0.7-0ubuntu0.18.04.9, and Ubuntu 16.04 LTS 1:5.1.6~rc2-0ubuntu1~xenial9. Restart LibreOffice after updating.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2019-9851 exploited in the wild?
- As of Nov 23, 2026, Mallory has no reports of CVE-2019-9851 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2019-9851?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2019-9851, the earliest disclosed Jul 16, 2019.
- Is there a patch for CVE-2019-9851?
- Upgrade LibreOffice to version 6.2.6 or later, or install distribution packages containing the backported fix. Fixed versions validate global script event handlers equivalently to document script event handlers.
- What products are affected by CVE-2019-9851?
- Libreoffice, Debian Project Debian Linux, Fedora Project Fedora, Opensuse Leap, and Canonical Ubuntu Linux.
- How severe is CVE-2019-9851?
- CVE-2019-9851 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 77.8% (100th percentile) as of Nov 23, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.