cve.bz

CVE-2022-3140 Argument Injection

6.3 mediumEPSS 7.0%

Medium (6.3). EPSS 7.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS
7.0% (unchanged from 7.0% a week ago; 6.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-3140 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-3140?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-3140?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-3140 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The Document Foundation LibreOfficefrom 7.4 before 7.4.1
The Document Foundation LibreOfficefrom 7.3 before 7.3.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libreoffice1:6.1.5-3+deb10u8DLA-3368-1
Debian11libreoffice1:7.0.4-4+deb11u4DSA-5252-1
Debian12, 13, 14libreoffice1:7.4.1~rc2-3DEBIAN-CVE-2022-3140
Ubuntu18.04:LTSlibreoffice1:6.0.7-0ubuntu0.18.04.12UBUNTU-CVE-2022-3140 USN-5694-1
Ubuntu20.04:LTSlibreoffice1:6.4.7-0ubuntu0.20.04.6UBUNTU-CVE-2022-3140 USN-5694-1
Ubuntu22.04:LTSlibreoffice1:7.3.6-0ubuntu0.22.04.2UBUNTU-CVE-2022-3140 USN-5694-1
Red Hatenterprise_linux:8::appstreamautocorr-af, autocorr-bg, autocorr-ca and 186 more1:6.4.7.2-12.el8_7RHSA-2023:0089
Red Hatenterprise_linux:8::crblibreoffice-sdk, libreoffice-sdk-doc, libreoffice-debuginfo and 18 more1:6.4.7.2-12.el8_7RHSA-2023:0089
Red Hatenterprise_linux:9::appstreamautocorr-af, autocorr-bg, autocorr-ca and 193 more1:7.1.8.1-8.el9_1RHSA-2023:0304
Red Hatenterprise_linux:9::crblibreoffice-sdk, libreoffice-sdk-doc, libreoffice-debuginfo and 18 more1:7.1.8.1-8.el9_1RHSA-2023:0304
SUSELinux Enterprise Module for Package Hub 15 SP3, Linux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Workstation Extension 15 SP3 and 1 morelibreoffice7.3.6.2-150300.14.22.24.2SUSE-SU-2022:3650-1
SUSELinux Enterprise Software Development Kit 12 SP5, Linux Enterprise Workstation Extension 12 SP5libreoffice7.3.6.2-48.28.1SUSE-SU-2022:3602-1
openSUSELeap 15.3, Leap 15.4libreoffice7.3.6.2-150300.14.22.24.2SUSE-SU-2022:3650-1
openSUSETumbleweedlibreoffice7.4.2.3-1.1openSUSE-SU-2024:12452-1
AlmaLinux8autocorr-af, autocorr-bg, autocorr-ca and 168 more1:6.4.7.2-12.el8_7.almaALSA-2023:0089
AlmaLinux9autocorr-af, autocorr-bg, autocorr-ca and 175 more1:7.1.8.1-8.el9_1.almaALSA-2023:0304
Rocky Linux8libreoffice1:6.4.7.2-12.el8_7RLSA-2023:0089
Rocky Linux9libreoffice1:7.1.8.1-8.el9_1RLSA-2023:0304
Alpinev3.15libreoffice7.2.7.2-r0ALPINE-CVE-2022-3140
Alpinev3.16libreoffice7.2.7.2-r2ALPINE-CVE-2022-3140
Alpinev3.17, v3.18, v3.19 and 5 morelibreoffice7.3.6.2-r0ALPINE-CVE-2022-3140

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libreoffice-1:6.4.7.2-12.el8_7Fixed 2023-01-12RHSA-2023:0089
Red Hat Enterprise Linux 9libreoffice-1:7.1.8.1-8.el9_1Fixed 2023-01-23RHSA-2023:0304
Red Hat Enterprise Linux 6libreofficeNot affected
Red Hat Enterprise Linux 7libreofficeOut of support scope
Red Hat Enterprise Linux 8libreoffice:flatpak/libreofficeWill not fix
Red Hat Enterprise Linux 9libreoffice:flatpak/libreofficeAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-3140.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON