# CVE-2019-9851: LibreLogo global-event script execution

- Priority: **Prioritise**
- Reason: Weaponized exploit (Metasploit, 16-07-2019)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2019-08-15 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2019-9851, DEBIAN-CVE-2019-9851, ALPINE-CVE-2019-9851
- Record: https://cvemate.com/vulnerability/CVE-2019-9851 · JSON: https://cvemate.com/vulnerability/CVE-2019-9851/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 77.837%, percentile 99.576%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (exploit-database, metasploit)

## Affected

- alpine libreoffice (Alpine Linux): \< 6.2.6.2-r0 \| \< 6.3.0.4-r0
- canonical ubuntu\_linux: 16.04 \| 18.04 \| 19.04
- debian libreoffice (Debian): \< 1:6.3.0-1
- ubuntu libreoffice (Ubuntu): \< 1:5.1.6~rc2-0ubuntu1~xenial9 \| \< 1:6.0.7-0ubuntu0.18.04.9
- debian debian\_linux: 8.0 \| 9.0 \| 10.0
- document foundation libreoffice: ≥ unspecified, \< 6.2.6
- fedoraproject fedora: 29
- libreoffice libreoffice: \< 6.2.6
- opensuse leap: 15.0 \| 15.1

## References

- <https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9851>
- <https://seclists.org/bugtraq/2019/Aug/28>
- <https://www.debian.org/security/2019/dsa-4501>
- <http://packetstormsecurity.com/files/154168/LibreOffice-Macro-Python-Code-Execution.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PMEGUWMWORC3DOVEHVXLFT3A5RSCMLBH/>
- <https://usn.ubuntu.com/4102-1/>
- <http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00006.html>
- <http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.html>
- <https://lists.debian.org/debian-lts-announce/2019/10/msg00005.html>
- <https://ubuntu.com/security/CVE-2019-9851>
- <https://www.libreoffice.org/about-us/security/advisories/cve-2019-9851/>
- <https://ubuntu.com/security/notices/USN-4102-1>
- <https://www.cve.org/CVERecord?id=CVE-2019-9851>
- <https://security-tracker.debian.org/tracker/CVE-2019-9851>
- <https://security.alpinelinux.org/vuln/CVE-2019-9851>

---

Data as of 2026-12-05T04:58:24.523Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
