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

- Severity: Medium 6.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.96%, higher than 94% of CVEs (2026-12-02)
- Published: 2022-10-11T00:00:00.000Z
- Modified: 2026-06-17T04:58:56.500Z
- Weaknesses: CWE-20, CWE-88
- Assigned by: Document Fdn.

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

(As written by CVE List.)

## Affected

- The Document Foundation LibreOffice: from 7.4 before 7.4.1; from 7.3 before 7.3.6
- libreoffice libreoffice: from 7.3.0 before 7.3.6; 7.4.0
- debian debian_linux: 11.0
- fedoraproject fedora: 35

## References

- <https://www.libreoffice.org/about-us/security/advisories/CVE-2022-3140> (vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5252> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TORANVTIWWBH3DNJR4UZATAG67KZOH32/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202212-04> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html> (mailing-list)

## Sources

- CVE List: [CVE-2022-3140](https://www.cve.org/CVERecord?id=CVE-2022-3140), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-3140](https://nvd.nist.gov/vuln/detail/CVE-2022-3140), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3140 · Whole record: https://cve.day/CVE-2022-3140.json · Rebuilt by cve.day 2026-11-25T22:58:15.589Z
