CVE-2022-3140 json
Macro URL arbitrary script execution
published 4y ago modified 4mo ago also EUVD-2022-42567
- cvss
- 6.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.0%
- EPSS 7.0% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- The Document Foundation LibreOffice 7.3.6, 7.4.1
- libreoffice Debian 14, Debian 13, Debian 12 1:7.4.1~rc2-3
debian advisories DEBIAN-CVE-2022-3140
- libreoffice Ubuntu 18.04 LTS 1:6.0.7-0ubuntu0.18.04.12
- libreoffice Ubuntu 20.04 LTS 1:6.4.7-0ubuntu0.20.04.6
- libreoffice Ubuntu 22.04 LTS 1:7.3.6-0ubuntu0.22.04.2
ubuntu advisories UBUNTU-CVE-2022-3140
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libreoffice RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-af RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-bg RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-ca RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-cs RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-da RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-de RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-el RHEL 9 1:7.1.8.1-8.el9_1
red hat advisories RHSA-2023:0304RHSA-2023:0089
- libreoffice SLE Workstation Extension 15 SP4, SLE Workstation Extension 15 SP3, SLE Module for Package Hub 15 SP4 +3 more 7.3.6.2-150300.14.22.24.2
- libreoffice SLE Workstation Extension 12 SP5, SLE Software Development Kit 12 SP5 7.3.6.2-48.28.1
suse advisories SUSE-SU-2022:3650-1SUSE-SU-2022:3602-1
- libreoffice openSUSE Tumbleweed 7.4.2.3-1.1
opensuse advisories openSUSE-SU-2024:12452-1
- autocorr-af AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-bg AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-ca AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-cs AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-da AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-de AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-el AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-en AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
almalinux advisories ALSA-2023:0304ALSA-2023:0089
- libreoffice Rocky Linux 9 1:7.1.8.1-8.el9_1
- libreoffice Rocky Linux 8 1:6.4.7.2-12.el8_7
rocky linux advisories RLSA-2023:0304RLSA-2023:0089
- libreoffice Alpine 3.15 7.2.7.2-r0
- libreoffice Alpine 3.16 7.2.7.2-r2
- libreoffice Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 7.3.6.2-r0
alpine advisories ALPINE-CVE-2022-3140
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2022-3140 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-3140 updated cvss 5.3
libreoffice: Macro URL arbitrary script execution
-
Red Hat Enterprise Linux 7 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +105 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +98 moreaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 9 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +101 moreaffected: no fix available
-
Red Hat CodeReady Linux Builder (v. 8) libreoffice-sdk 6.4.7.2-12.el8_7fixed: vendor fix RHSA-2023:0089
-
Red Hat CodeReady Linux Builder (v. 9) libreoffice-sdk 7.1.8.1-8.el9_1fixed: vendor fix RHSA-2023:0304
-
Red Hat Enterprise Linux AppStream (v. 8) autocorr-af 6.4.7.2-12.el8_7, autocorr-bg 6.4.7.2-12.el8_7, autocorr-ca 6.4.7.2-12.el8_7, autocorr-cs 6.4.7.2-12.el8_7, autocorr-da 6.4.7.2-12.el8_7, autocorr-de 6.4.7.2-12.el8_7, +95 morefixed: vendor fix RHSA-2023:0089
-
Red Hat Enterprise Linux AppStream (v. 9) autocorr-af 7.1.8.1-8.el9_1, autocorr-bg 7.1.8.1-8.el9_1, autocorr-ca 7.1.8.1-8.el9_1, autocorr-cs 7.1.8.1-8.el9_1, autocorr-da 7.1.8.1-8.el9_1, autocorr-de 7.1.8.1-8.el9_1, +100 morefixed: vendor fix RHSA-2023:0304
-
Red Hat Enterprise Linux 6 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +60 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
6.96% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
Affected products
- The Document Foundation LibreOffice
Classification
References
-
debian.org
/security/2022/dsa-5252
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TORANVTIWWBH3DNJR4UZATAG67KZOH32/
vendor-advisory
-
security.gentoo.org
/glsa/202212-04
vendor-advisory, third-party-advisory
-
libreoffice.org
/about-us/security/advisories/CVE-2022-3140
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2023/03/msg00022.html
mailing-list
Sources
- CVE List CVE-2022-3140
- NVD CVE-2022-3140
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.