CVE-2019-9851 LibreLogo global-event script execution

Critical 9.8 Published Updated

Attackers can execute arbitrary Python code via LibreLogo global event handlers in LibreOffice documents, bypassing previous protections.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-9851?

CVE-2019-9851 is a critical code injection vulnerability in Canonical Ubuntu Linux, published on 15 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2019-9851?

It affects 5 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Libreoffice Libreoffice, Opensuse Leap.

How do I fix CVE-2019-9851?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-9851 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-9851 exists.

Public exploit code: 1 Metasploit module and 1 Exploit-DB entry.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-9851, GHSA-2rm2-3r73-2vfr, UBUNTU-CVE-2019-9851.

Is CVE-2019-9851 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free