Skip to content
Fencer Vulns
medium 6.3

CVE-2022-3140 json

Macro URL arbitrary script execution

published 2022-10-11 4 y ago modified 2026-06-17 4 mo 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

  • libreoffice-fresh Arch Linux 7.4.1-1
  • libreoffice-still Arch Linux 7.3.6-1

arch linux advisories AVG-2806AVG-2807

Vendor 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 more
    affected: 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 more
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 9 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +101 more
    affected: no fix available
  • Red Hat CodeReady Linux Builder (v. 8) libreoffice-sdk 6.4.7.2-12.el8_7
    fixed: vendor fix RHSA-2023:0089
  • Red Hat CodeReady Linux Builder (v. 9) libreoffice-sdk 7.1.8.1-8.el9_1
    fixed: 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 more
    fixed: 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 more
    fixed: vendor fix RHSA-2023:0304
  • Red Hat Enterprise Linux 6 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +60 more
    not 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-08).

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

Weakness
  • CWE-20 Improper Input Validation
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command

References

Sources

Fencer Vulns 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.