CVE-2019-9848 Code injection in LibreOffice

Critical 9.8 Published Updated

Malicious documents can trigger LibreLogo to execute arbitrary Python commands silently via document event handlers, allowing code execution.

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-9848?

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

Official description

LibreOffice has a feature where documents can specify that pre-installed scripts can be executed on various document events such as mouse-over, etc. LibreOffice is typically also bundled with LibreLogo, a programmable turtle vector graphics script, which can be manipulated into executing arbitrary python commands. By using the document event feature to trigger LibreLogo to execute python contained within a document a malicious document could be constructed which would execute arbitrary python commands silently without warning. In the fixed versions, LibreLogo cannot be called from a document event handler. This issue affects: Document Foundation LibreOffice versions prior to 6.2.5.

Weakness: CWE-94

Which versions are affected by CVE-2019-9848?

It affects 5 products.

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

How do I fix CVE-2019-9848?

Upgrade to a fixed version.

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

Is CVE-2019-9848 being exploited?

There is no known exploitation of CVE-2019-9848 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-9848, GHSA-4vpq-gvj2-8j36, UBUNTU-CVE-2019-9848.

Is CVE-2019-9848 in your software?

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

Check your SBOMs for free