---
title: "CVE-2022-3140\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2022-3140?format=md
keywords: index, follow
---

# CVE-2022-3140

Publication date 11 October 2022

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**6.3 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2022-3140?format=md#impact-score)

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2022-3140?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libreoffice | 23.04 lunar | Not affected |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Fixed 1:7.3.6-0ubuntu0.22.04.2 |
| 20.04 LTS focal | Fixed 1:6.4.7-0ubuntu0.20.04.6 |
| 18.04 LTS bionic | Fixed 1:6.0.7-0ubuntu0.18.04.12 |
| 16.04 LTS xenial | Ignored end of standard support |
| 14.04 LTS trusty | Ignored end of standard support |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2022-3140?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

This is fixed in (1:7.3.6-0ubuntu0.22.04.1) in jammy, but is
not yet in the security pocket.
Fourth commit is in 7.3.7, appears related and used by Debian,
possibly not needed to fix the CVE.

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| libreoffice | * Upstream:   [b3edf85](https://github.com/LibreOffice/core/commit/b3edf85e0fe6ca03dc26e1bf531be82193bc9627) * Upstream:   [e36986a](https://github.com/LibreOffice/core/commit/e36986a3a7f448722961bde79691fb2f225c48ea) * Upstream:   [2f7e7db](https://github.com/LibreOffice/core/commit/2f7e7dbebb28123b1e608c30af6cc335e7b5ed2f) * Upstream:   [7c29958](https://github.com/LibreOffice/core/commit/7c299586526c29875d2d1438c95580c18835c99b) * Upstream:   [6503607](https://github.com/LibreOffice/core/commit/6503607dfca690e8f62c67c53306721736ca6a1d) * Upstream:   [71abb62](https://github.com/LibreOffice/core/commit/71abb628797c0d5e4c15b71f10657b0e32b58386) * Upstream:   [8ab71da](https://github.com/LibreOffice/core/commit/8ab71daa8b1c7095a948398b7d029dda27145d70) * Upstream:   [5c43380](https://github.com/LibreOffice/core/commit/5c433800c24281c7d7edfb5b3fd6759c524907c1) * Upstream:   [d031278](https://github.com/LibreOffice/core/commit/d0312786571221c2dd4f63fa69f6f0489d7d39ec) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

6.3 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | Low |
  | Integrity impact | Low |
  | Availability impact | Low |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 6.3 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3140)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-3140)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2022-3140)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2022-3140)

### Related Ubuntu Security Notices (USN)

+ [USN-5694-1](https://usn.ubuntu.com/USN-5694-1)
+ LibreOffice vulnerabilities
+ 20 October 2022

### Other references

* <https://www.libreoffice.org/about-us/security/advisories/cve-2022-3140>
* <https://www.debian.org/security/2022/dsa-5252>
* <https://www.cve.org/CVERecord?id=CVE-2022-3140>
