CVE-2019-9851LibreLogo global-event script execution
- 9.8CriticalCVSS base score
- 77.8%Exploitation in 30 daysEPSS · top 0.4% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
LibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitrary python commands contained with the document it is launched from. Protection was added, to address CVE-2019-9848, to block calling LibreLogo from document event script handers, e.g. mouse over. However LibreOffice also has a separate feature where documents can specify that pre-installed scripts can be executed on various global script events such as document-open, etc. In the fixed versions, global script event handlers are validated equivalently to document script event handlers. This issue affects: Document Foundation LibreOffice versions prior to 6.2.6.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and an Exploit-DB entry for it.
Show the exploits2
Metasploit modules1 module
- LibreOffice Macro Python Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/fileformat/libreoffice_logo_execRank normaldisclosed 16 Jul 2019
Exploit-DB1 entry
- LibreOffice < 6.2.6 Macro - Python Code Execution (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 47298remote, multiplepublished 21 Aug 2019Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By Document Fdn.
- 5 months later
· 5 months later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 77.8% · top 0.4% of all CVEs (12 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Document Foundation · LibreOffice
- affected unspecified – < 6.2.6
References
References9
- https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9851 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 20190815 [SECURITY] [DSA 4501-1] libreoffice security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- DSA-4501 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://packetstormsecurity.com/files/154168/LibreOffice-Macro-Python-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2019-2fe22a3a2c (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- USN-4102-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- openSUSE-SU-2019:2057 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- openSUSE-SU-2019:2183 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- [debian-lts-announce] 20191006 [SECURITY] [DLA 1947-1] libreoffice security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2019-19207 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2019-9851)Record last updated .