Medium severity · published Oct 11, 2022
CVE-2022-3140
Macro URL arbitrary script execution
6.3
CVSS
6.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)6.9% · higher than 94% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
LibreOffice · The Document Foundation
7.4 before 7.4.1; 7.3 before 7.3.6 · source: vendor, NVD
DL
Debian Linux · Debian
11.0 · source: NVD
FE
Fedora · Fedoraproject
35 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-3140
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-3140
lists.debian.org
https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TORANVTIWWBH3DNJR4UZATAG67KZOH32/
Third Party Advisory
https://security.gentoo.org/glsa/202212-04
Third Party Advisory
https://www.debian.org/security/2022/dsa-5252
Vendor Advisory
https://www.libreoffice.org/about-us/security/advisories/CVE-2022-3140
More from LibreOffice
8.5
CVE-2026-63277
RCE via calcext:data-mappings, sql provider and jdbc connector
7.8
CVE-2026-8357
Heap buffer overflow in Calc formula compilation
7.8
CVE-2026-4430
Heap Buffer Overflow in AgileEngine
7.3
CVE-2026-6040
Heap use-after-free in ODF number-format blank-width parsing
6.8
CVE-2026-63266
Arbitrary file write via calcext:data-mappings, sql provider and Firebird backup functionality
