CVE-2022-3140 Macro URL arbitrary script execution

Medium 6.3 Published Updated

Attackers can execute arbitrary scripts via crafted LibreOffice command URIs, requiring users to click links or trigger document events.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-3140?

CVE-2022-3140 is a medium-severity code injection vulnerability in Debian Debian Linux, published on 11 Oct 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

LibreOffice supports Office URI Schemes to enable browser integration of LibreOffice with MS SharePoint server. An additional scheme 'vnd.libreoffice.command' specific to LibreOffice was added. In the affected versions of LibreOffice links using that scheme could be constructed to call internal macros with arbitrary arguments. Which when clicked on, or activated by document events, could result in arbitrary script execution without warning. This issue affects: The Document Foundation LibreOffice 7.4 versions prior to 7.4.1; 7.3 versions prior to 7.3.6.

Weakness: CWE-88, CWE-20

Which versions are affected by CVE-2022-3140?

It affects 3 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Libreoffice Libreoffice.

How do I fix CVE-2022-3140?

Upgrade to a fixed version.

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

Is CVE-2022-3140 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-3140, DSA-5252-1, GHSA-6ggr-6xf8-p64w, MGASA-2022-0400, UBUNTU-CVE-2022-3140.

Is CVE-2022-3140 in your software?

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

Check your SBOMs for free