p PatchFirst

CVE-2022-3140

CVE-2022-3140 · Macro URL arbitrary script execution

CVSS 6.3 · Medium · EPSS 7.0% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

apk list -I -o libreoffice

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • RHSA-2023:0304 · Red Hat Enterprise Linux 9 appstream, Red Hat Enterprise Linux 9 crb ·
  • RHSA-2023:0089 · Red Hat Enterprise Linux 8 appstream, Red Hat Enterprise Linux 8 crb ·
  • openSUSE-SU-2024:12452-1 · openSUSE Tumbleweed ·
  • DLA-3368-1 · Debian 10 ·
  • RLSA-2023:0304 · Rocky Linux 9 ·
  • ALSA-2023:0304 · AlmaLinux 9 ·
  • RLSA-2023:0089 · Rocky Linux 8 ·
  • ALSA-2023:0089 · AlmaLinux 8 ·
  • USN-5694-1 · Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS ·
  • SUSE-SU-2022:3650-1 · openSUSE Leap 15.3, openSUSE Leap 15.4, SUSE Linux Enterprise Module for Package Hub 15 SP3, SUSE Linux Enterprise Module for Package Hub 15 SP4, SUSE Linux Enterprise Workstation Extension 15 SP3, SUSE Linux Enterprise Workstation Extension 15 SP4 ·
  • SUSE-SU-2022:3602-1 · SUSE Linux Enterprise Software Development Kit 12 SP5, SUSE Linux Enterprise Workstation Extension 12 SP5 ·
  • DSA-5252-1 · Debian 11 ·

Stack: system

Affected products and versions

  • libreoffice

    Versions
    • ≥ 7.4, < 7.4.1: Affected (custom)
    • ≥ 7.3, < 7.3.6: Affected (custom)

    Update to 7.3.6; Update to 7.4.1

  • libreoffice Alpine 3.15

    Affected ranges
    • ECOSYSTEM: < 7.2.7.2-r0

    Update to 7.2.7.2-r0

  • libreoffice Alpine 3.16

    Affected ranges
    • ECOSYSTEM: < 7.2.7.2-r2

    Update to 7.2.7.2-r2

  • libreoffice Alpine 3.17

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Alpine 3.18

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Alpine 3.19

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Alpine 3.20

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Alpine 3.21

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Alpine 3.22

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Alpine 3.23

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Alpine 3.24

    Affected ranges
    • ECOSYSTEM: ≥ 7.3.0, < 7.3.6.2-r0

    Update to 7.3.6.2-r0

  • libreoffice Debian 12

    Affected ranges
    • ECOSYSTEM: < 1:7.4.1~rc2-3

    Update to 1:7.4.1~rc2-3

  • libreoffice Debian 13

    Affected ranges
    • ECOSYSTEM: < 1:7.4.1~rc2-3

    Update to 1:7.4.1~rc2-3

  • libreoffice Debian 14

    Affected ranges
    • ECOSYSTEM: < 1:7.4.1~rc2-3

    Update to 1:7.4.1~rc2-3

  • libreoffice Ubuntu 18.04 LTS

    Versions
    • 1:5.4.1-0ubuntu1
    • 1:5.4.1-0ubuntu3
    • 1:5.4.2-0ubuntu5
    • 1:5.4.3-0ubuntu1
    • 1:5.4.4-0ubuntu5
    • 1:6.0.1-0ubuntu3
    All versions (17)
    • 1:6.0.2-0ubuntu1
    • 1:6.0.3-0ubuntu1
    • 1:6.0.6-0ubuntu0.18.04.1
    • 1:6.0.7-0ubuntu0.18.04.2
    • 1:6.0.7-0ubuntu0.18.04.5
    • 1:6.0.7-0ubuntu0.18.04.6
    • 1:6.0.7-0ubuntu0.18.04.7
    • 1:6.0.7-0ubuntu0.18.04.8
    • 1:6.0.7-0ubuntu0.18.04.9
    • 1:6.0.7-0ubuntu0.18.04.10
    • 1:6.0.7-0ubuntu0.18.04.11
    Affected ranges
    • ECOSYSTEM: < 1:6.0.7-0ubuntu0.18.04.12

    Update to 1:6.0.7-0ubuntu0.18.04.12

  • libreoffice Ubuntu 20.04 LTS

    Versions
    • 1:6.3.2-0ubuntu2
    • 1:6.3.3-0ubuntu1
    • 1:6.3.3-0ubuntu2
    • 1:6.3.4-0ubuntu1
    • 1:6.4.0-0ubuntu4
    • 1:6.4.0-0ubuntu6
    All versions (19)
    • 1:6.4.0-0ubuntu7
    • 1:6.4.1-0ubuntu1
    • 1:6.4.2-0ubuntu1
    • 1:6.4.2-0ubuntu2
    • 1:6.4.2-0ubuntu3
    • 1:6.4.3-0ubuntu0.20.04.1
    • 1:6.4.4-0ubuntu0.20.04.1
    • 1:6.4.5-0ubuntu0.20.04.1
    • 1:6.4.6-0ubuntu0.20.04.1
    • 1:6.4.7-0ubuntu0.20.04.1
    • 1:6.4.7-0ubuntu0.20.04.2
    • 1:6.4.7-0ubuntu0.20.04.4
    • 1:6.4.7-0ubuntu0.20.04.5
    Affected ranges
    • ECOSYSTEM: < 1:6.4.7-0ubuntu0.20.04.6

    Update to 1:6.4.7-0ubuntu0.20.04.6

  • libreoffice Ubuntu 22.04 LTS

    Versions
    • 1:7.2.1-0ubuntu3
    • 1:7.2.2-0ubuntu0.21.10.1
    • 1:7.2.3~rc2-0ubuntu1
    • 1:7.2.4-0ubuntu1
    • 1:7.2.5~rc1-0ubuntu2
    • 1:7.2.5~rc2-0ubuntu1
    All versions (16)
    • 1:7.3.1~rc2-0ubuntu1
    • 1:7.3.1~rc3-0ubuntu1
    • 1:7.3.2~rc1-0ubuntu2
    • 1:7.3.2~rc2-0ubuntu1
    • 1:7.3.2-0ubuntu1
    • 1:7.3.2-0ubuntu2
    • 1:7.3.3-0ubuntu0.22.04.1
    • 1:7.3.4-0ubuntu0.22.04.1
    • 1:7.3.5-0ubuntu0.22.04.1
    • 1:7.3.6-0ubuntu0.22.04.1
    Affected ranges
    • ECOSYSTEM: < 1:7.3.6-0ubuntu0.22.04.2

    Update to 1:7.3.6-0ubuntu0.22.04.2

Original sources

Check your server →