CVE-2019-9851: LibreOffice - Remote Code Execution
- Cve: CVE-2019-9851
- Name: LibreOffice - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary python commands via global script events, potentially leading to remote code execution on the host system.
- Remediation: Update to LibreOffice version 6.2.6 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs victim to open malicious document
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.77837
- Epss percentile: 0.99579
- Assignee: [email protected]
- Published at: 2019-08-15T22:15:22Z
- Age in days: 2658
- Modified at: 2026-06-17T02:44:43Z
- Patch available: yes
- Public exploits total: 1
- References total: 9
- Products total: 5
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-9851
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_logo_exec.rb | metasploit | 2019-07-16 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9851 | Vendor Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00006.html | Mailing List, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.html | Mailing List, Third Party Advisory |
| http://packetstormsecurity.com/files/154168/LibreOffice-Macro-Python-Code-Execution.html | Third Party Advisory, VDB Entry |
| https://lists.debian.org/debian-lts-announce/2019/10/msg00005.html | Mailing List, Third Party Advisory |
| https://seclists.org/bugtraq/2019/Aug/28 | Mailing List, Third Party Advisory |
| https://usn.ubuntu.com/4102-1/ | Third Party Advisory |
| https://www.debian.org/security/2019/dsa-4501 | Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PMEGUWMWORC3DOVEHVXLFT3A5RSCMLBH/ |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| libreoffice:libreoffice | < 6.2.6 | /v1/products/libreoffice/libreoffice |
| debian:debian_linux | = 10.0, = 9.0, = 8.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 29 | /v1/products/fedoraproject/fedora |
| canonical:ubuntu_linux | = 19.04, = 18.04, = 16.04 | /v1/products/canonical/ubuntu_linux |
| opensuse:leap | = 15.1, = 15.0 | /v1/products/opensuse/leap |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2019-07-16
- Remote: yes
- Exposed hosts: 21216412
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports