← Vulnerability feed

Vulnerability record · CVE-2019-9851 · published 15 August 2019

CVE-2019-9851: LibreOffice LibreLogo global script event validation bypass allows Python execution

Canonical · Ubuntu Linux

LibreOffice bundles LibreLogo, a programmable turtle graphics script that can execute arbitrary Python commands embedded in a document. A prior fix for CVE-2019-9848 blocked calling LibreLogo from document event script handlers, but global script events such as document-open were not validated the same way, so a crafted document could still trigger script execution. Fixed versions validate global script event handlers equivalently to document script event handlers.

9.8 CVSS 3.1 Critical EPSS 78% · top 0.4% CWE-20 · Improper input validation
9.8CVSS 3.1 base score, v2 7.5
78%EPSS exploitation probability, 30 days
NoNot in CISA KEV
5Affected product versions listed by NVD
18References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no privileges or user interaction required and a very high EPSS score, and successful exploitation yields arbitrary code execution on the host.

What it is

LibreOffice bundles LibreLogo, a programmable turtle graphics script that can execute arbitrary Python commands embedded in a document. A prior fix for CVE-2019-9848 blocked calling LibreLogo from document event script handlers, but global script events such as document-open were not validated the same way, so a crafted document could still trigger script execution. Fixed versions validate global script event handlers equivalently to document script event handlers.

Impact

An attacker who gets a victim to open a crafted document can execute arbitrary Python code in the context of the LibreOffice process, leading to code execution on the host with the victim's privileges.

Attack surface

Reached by opening a malicious document in an affected LibreOffice build; the CVSS vector is network, no privileges and no user interaction, though in practice delivery requires the target to open the file. No authentication is needed.

Exploitation

Not listed in CISA KEV and no ransomware associations are recorded, but EPSS is very high (0.783 probability, 99.6th percentile) and public references include a Packet Storm entry titled LibreOffice Macro Python Code Execution, indicating public technical detail exists.

What to do

  • Upgrade LibreOffice to 6.2.6 or later, or apply the vendor and distribution updates referenced in the advisories (Ubuntu USN-4102-1, Debian DSA-4501, openSUSE and Fedora announcements).
  • Disable or restrict LibreLogo and macro execution via LibreOffice security settings, and set macro security to high so untrusted documents cannot run scripts.
  • Block or quarantine untrusted office documents at email and web gateways, and strip or inspect embedded scripts before delivery.
  • Where LibreOffice is not required, remove it from endpoints that handle untrusted documents, or open untrusted files in a sandboxed or converted form.
  • Monitor vendor advisories for the bundled LibreOffice packages on each distribution and keep them current.

Detection

  • Alert on LibreOffice or soffice processes spawning child processes such as python, sh, cmd or powershell, which is abnormal for normal document editing.
  • Monitor for document-open or other global script event activity and LibreLogo usage in documents, including files containing LibreLogo or Basic macro content.
  • Hunt for office documents received from external senders that contain embedded scripts, and correlate with subsequent process creation on the endpoint.
  • Review endpoint logs for LibreOffice crashes or unexpected child process trees shortly after a document is opened.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

5 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00006.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.html Mailing ListThird Party Advisory
http://packetstormsecurity.com/files/154168/LibreOffice-Macro-Python-Code-Execution.html Third Party AdvisoryVDB Entry
https://lists.debian.org/debian-lts-announce/2019/10/msg00005.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PMEGUWMWORC3DOVEHVXLFT3
https://seclists.org/bugtraq/2019/Aug/28 Mailing ListThird Party Advisory
https://usn.ubuntu.com/4102-1/ Third Party Advisory
https://www.debian.org/security/2019/dsa-4501 Third Party Advisory
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 ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00067.html Mailing ListThird Party Advisory
http://packetstormsecurity.com/files/154168/LibreOffice-Macro-Python-Code-Execution.html Third Party AdvisoryVDB Entry
https://lists.debian.org/debian-lts-announce/2019/10/msg00005.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PMEGUWMWORC3DOVEHVXLFT3
https://seclists.org/bugtraq/2019/Aug/28 Mailing ListThird Party Advisory
https://usn.ubuntu.com/4102-1/ Third Party Advisory
https://www.debian.org/security/2019/dsa-4501 Third Party Advisory
https://www.libreoffice.org/about-us/security/advisories/CVE-2019-9851 Vendor Advisory

Track CVE-2019-9851 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2019-9851), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.