CVE-2022-3140: Macro URL arbitrary script execution

Published Oct 11, 2022
·
Updated

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.

Affected Software

5 affected componentsFixes available
debian/libreoffice<=1:6.1.5-3+deb10u7
1:6.1.5-3+deb10u101:7.0.4-4+deb11u74:7.4.7-14:7.5.6-14:7.5.8~rc1-1
LibreOffice Libreoffice>=7.3.0<7.3.6
LibreOffice Libreoffice=7.4.0
Debian Debian Linux=11.0
Fedoraproject Fedora=35

Event History

Oct 11, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-3140?

CVE-2022-3140 is a vulnerability in LibreOffice that allows for the construction of links using the 'vnd.libreoffice.command' scheme to call internal macros.

2

How does LibreOffice's Office URI Schemes vulnerability affect browser integration with MS SharePoint server?

The vulnerability in LibreOffice's Office URI Schemes allows for browser integration with MS SharePoint server, but specifically enables the construction of malicious links to call internal macros.

3

What versions of LibreOffice are affected by CVE-2022-3140?

Versions of LibreOffice from 7.3.0 to 7.3.6, as well as version 7.4.0, are affected by CVE-2022-3140.

4

What can an attacker do with the 'vnd.libreoffice.command' scheme in the LibreOffice vulnerability?

An attacker can use the 'vnd.libreoffice.command' scheme to construct links that call internal macros, potentially executing arbitrary commands on a victim's system.

5

How can I mitigate the vulnerability in LibreOffice's Office URI Schemes?

To mitigate the vulnerability, update your LibreOffice installation to a version that is not affected by CVE-2022-3140.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203