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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-10-11 · Modified: 2024-08-03
- Aliases: MGASA-2022-0400, UBUNTU-CVE-2022-3140, DEBIAN-CVE-2022-3140, DSA-5252-1, ALPINE-CVE-2022-3140
- Record: https://cvemate.com/vulnerability/CVE-2022-3140 · JSON: https://cvemate.com/vulnerability/CVE-2022-3140/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- EPSS: 6.962%, percentile 94.285%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libreoffice (Alpine Linux): ≥ 7.3.0, \< 7.2.7.2-r0 \| ≥ 7.3.0, \< 7.2.7.2-r2 \| \< 7.2.7.2-r0 \| \< 7.2.7.2-r2 \| ≥ 7.3.0, \< 7.3.6.2-r0
- debian libreoffice (Debian): \< 1:7.0.4-4+deb11u4 \| \< 1:7.4.1~rc2-3
- ubuntu libreoffice (Ubuntu): \< 1:6.0.7-0ubuntu0.18.04.12 \| \< 1:6.4.7-0ubuntu0.20.04.6 \| \< 1:7.3.6-0ubuntu0.22.04.2
- debian debian\_linux: 11.0
- fedoraproject fedora: 35
- libreoffice libreoffice: ≥ 7.3.0, \< 7.3.6 \| 7.4.0
- mageia libmwaw (Mageia): \< 0.3.21-1.mga8
- mageia libreoffice (Mageia): \< 7.3.6.2-1.mga8
- the document foundation libreoffice: ≥ 7.4, \< 7.4.1 \| ≥ 7.3, \< 7.3.6

## 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>
- <https://advisories.mageia.org/MGASA-2022-0400.html>
- <https://bugs.mageia.org/show_bug.cgi?id=30959>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/TORANVTIWWBH3DNJR4UZATAG67KZOH32/>
- <https://ubuntu.com/security/CVE-2022-3140>
- <https://www.libreoffice.org/about-us/security/advisories/cve-2022-3140>
- <https://ubuntu.com/security/notices/USN-5694-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-3140>
- <https://security-tracker.debian.org/tracker/CVE-2022-3140>
- <https://security.alpinelinux.org/vuln/CVE-2022-3140>

---

Data as of 2026-12-05T04:50:32.860Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
