Amazon Linux 2 : libreoffice (ALASLIBREOFFICE-2023-002)

critical Nessus Plugin ID 182035

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of libreoffice installed on the remote host is prior to 5.3.6.1-21. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2LIBREOFFICE-2023-002 advisory.

- LibreOffice has a feature where documents can specify that pre-installed scripts can be executed on various document events such as mouse-over, etc. LibreOffice is typically also bundled with LibreLogo, a programmable turtle vector graphics script, which can be manipulated into executing arbitrary python commands. By using the document event feature to trigger LibreLogo to execute python contained within a document a malicious document could be constructed which would execute arbitrary python commands silently without warning. In the fixed versions, LibreLogo cannot be called from a document event handler. This issue affects: Document Foundation LibreOffice versions prior to 6.2.5. (CVE-2019-9848)

- LibreOffice has a 'stealth mode' in which only documents from locations deemed 'trusted' are allowed to retrieve remote resources. This mode is not the default mode, but can be enabled by users who want to disable LibreOffice's ability to include remote resources within a document. A flaw existed where bullet graphics were omitted from this protection prior to version 6.2.5. This issue affects: Document Foundation LibreOffice versions prior to 6.2.5. (CVE-2019-9849)

- LibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitrary python commands contained with the document it is launched from. LibreOffice also has a feature where documents can specify that pre-installed scripts can be executed on various document script events such as mouse-over, etc. Protection was added, to address CVE-2019-9848, to block calling LibreLogo from script event handers. However an insufficient url validation vulnerability in LibreOffice allowed malicious to bypass that protection and again trigger calling LibreLogo from script event handlers. This issue affects: Document Foundation LibreOffice versions prior to 6.2.6. (CVE-2019-9850)

- LibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitrary python commands contained with the document it is launched from. Protection was added, to address CVE-2019-9848, to block calling LibreLogo from document event script handers, e.g. mouse over.
However LibreOffice also has a separate feature where documents can specify that pre-installed scripts can be executed on various global script events such as document-open, etc. In the fixed versions, global script event handlers are validated equivalently to document script event handlers. This issue affects:
Document Foundation LibreOffice versions prior to 6.2.6. (CVE-2019-9851)

- LibreOffice has a feature where documents can specify that pre-installed macros can be executed on various script events such as mouse-over, document-open etc. Access is intended to be restricted to scripts under the share/Scripts/python, user/Scripts/python sub-directories of the LibreOffice install. Protection was added, to address CVE-2018-16858, to avoid a directory traversal attack where scripts in arbitrary locations on the file system could be executed. However this new protection could be bypassed by a URL encoding attack. In the fixed versions, the parsed url describing the script location is correctly encoded before further processing. This issue affects: Document Foundation LibreOffice versions prior to 6.2.6.
(CVE-2019-9852)

- LibreOffice documents can contain macros. The execution of those macros is controlled by the document security settings, typically execution of macros are blocked by default. A URL decoding flaw existed in how the urls to the macros within the document were processed and categorized, resulting in the possibility to construct a document where macro execution bypassed the security settings. The documents were correctly detected as containing macros, and prompted the user to their existence within the documents, but macros within the document were subsequently not controlled by the security settings allowing arbitrary macro execution This issue affects: LibreOffice 6.2 series versions prior to 6.2.7;
LibreOffice 6.3 series versions prior to 6.3.1. (CVE-2019-9853)

- LibreOffice has a feature where documents can specify that pre-installed macros can be executed on various script events such as mouse-over, document-open etc. Access is intended to be restricted to scripts under the share/Scripts/python, user/Scripts/python sub-directories of the LibreOffice install. Protection was added, to address CVE-2019-9852, to avoid a directory traversal attack where scripts in arbitrary locations on the file system could be executed by employing a URL encoding attack to defeat the path verification step. However this protection could be bypassed by taking advantage of a flaw in how LibreOffice assembled the final script URL location directly from components of the passed in path as opposed to solely from the sanitized output of the path verification step. This issue affects: Document Foundation LibreOffice 6.2 versions prior to 6.2.7; 6.3 versions prior to 6.3.1. (CVE-2019-9854)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update libreoffice' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALASLIBREOFFICE-2023-002.html

https://alas.aws.amazon.com/cve/html/CVE-2019-9848.html

https://alas.aws.amazon.com/cve/html/CVE-2019-9849.html

https://alas.aws.amazon.com/cve/html/CVE-2019-9850.html

https://alas.aws.amazon.com/cve/html/CVE-2019-9851.html

https://alas.aws.amazon.com/cve/html/CVE-2019-9852.html

https://alas.aws.amazon.com/cve/html/CVE-2019-9853.html

https://alas.aws.amazon.com/cve/html/CVE-2019-9854.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: Critical

ID: 182035

File Name: al2_ALASLIBREOFFICE-2023-002.nasl

Version: 1.2

Type: local

Agent: unix

Published: 9/27/2023

Updated: 10/2/2023

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2019-9851

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.4

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:libreoffice-langpack-ts, p-cpe:/a:amazon:linux:libreoffice-langpack-mai, p-cpe:/a:amazon:linux:libreoffice-opensymbol-fonts, p-cpe:/a:amazon:linux:libreoffice-help-hr, p-cpe:/a:amazon:linux:libreoffice-langpack-lt, p-cpe:/a:amazon:linux:libreoffice-help-lt, p-cpe:/a:amazon:linux:libreoffice-langpack-eu, p-cpe:/a:amazon:linux:libreofficekit-devel, p-cpe:/a:amazon:linux:libreoffice-help-ta, p-cpe:/a:amazon:linux:autocorr-lt, p-cpe:/a:amazon:linux:libreoffice-langpack-nl, p-cpe:/a:amazon:linux:libreoffice-langpack-zh-hant, p-cpe:/a:amazon:linux:libreoffice-langpack-sv, p-cpe:/a:amazon:linux:autocorr-ca, p-cpe:/a:amazon:linux:autocorr-ru, p-cpe:/a:amazon:linux:libreoffice-help-dz, p-cpe:/a:amazon:linux:libreoffice-langpack-as, p-cpe:/a:amazon:linux:libreoffice-writer, p-cpe:/a:amazon:linux:libreoffice-help-eu, p-cpe:/a:amazon:linux:libreoffice-help-hu, p-cpe:/a:amazon:linux:autocorr-nl, p-cpe:/a:amazon:linux:libreoffice-help-sv, p-cpe:/a:amazon:linux:libreoffice-x11, p-cpe:/a:amazon:linux:libreoffice-ure-common, p-cpe:/a:amazon:linux:libreoffice-pyuno, p-cpe:/a:amazon:linux:libreoffice-langpack-gl, p-cpe:/a:amazon:linux:libreoffice-help-bg, p-cpe:/a:amazon:linux:autocorr-en, p-cpe:/a:amazon:linux:autocorr-de, p-cpe:/a:amazon:linux:libreoffice-langpack-it, p-cpe:/a:amazon:linux:libreoffice-langpack-nb, p-cpe:/a:amazon:linux:libreoffice-help-sk, p-cpe:/a:amazon:linux:libreoffice-math, p-cpe:/a:amazon:linux:libreoffice-draw, p-cpe:/a:amazon:linux:libreoffice-langpack-ar, p-cpe:/a:amazon:linux:libreoffice-langpack-si, p-cpe:/a:amazon:linux:libreoffice-nlpsolver, p-cpe:/a:amazon:linux:libreoffice-gtk3, p-cpe:/a:amazon:linux:libreoffice-langpack-st, p-cpe:/a:amazon:linux:autocorr-fr, p-cpe:/a:amazon:linux:libreoffice-langpack-hi, p-cpe:/a:amazon:linux:libreoffice-help-ar, p-cpe:/a:amazon:linux:libreoffice-help-pt-br, p-cpe:/a:amazon:linux:libreoffice-debuginfo, p-cpe:/a:amazon:linux:libreoffice-langpack-tr, p-cpe:/a:amazon:linux:libreoffice-langpack-cs, p-cpe:/a:amazon:linux:libreoffice-bsh, p-cpe:/a:amazon:linux:libreoffice-langpack-mr, p-cpe:/a:amazon:linux:libreoffice-help-bn, p-cpe:/a:amazon:linux:libreoffice-help-hi, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:libreoffice-langpack-da, p-cpe:/a:amazon:linux:libreoffice-help-ro, p-cpe:/a:amazon:linux:libreoffice-officebean, p-cpe:/a:amazon:linux:autocorr-sl, p-cpe:/a:amazon:linux:libreoffice-calc, p-cpe:/a:amazon:linux:libreoffice-langpack-ko, p-cpe:/a:amazon:linux:autocorr-mn, p-cpe:/a:amazon:linux:libreoffice-langpack-bg, p-cpe:/a:amazon:linux:libreoffice-langpack-el, p-cpe:/a:amazon:linux:libreoffice-help-nb, p-cpe:/a:amazon:linux:libreoffice-rhino, p-cpe:/a:amazon:linux:libreoffice-help-nn, p-cpe:/a:amazon:linux:libreoffice-langpack-et, p-cpe:/a:amazon:linux:libreoffice-librelogo, p-cpe:/a:amazon:linux:autocorr-vi, p-cpe:/a:amazon:linux:libreoffice-help-sl, p-cpe:/a:amazon:linux:libreoffice-help-da, p-cpe:/a:amazon:linux:autocorr-cs, p-cpe:/a:amazon:linux:autocorr-es, p-cpe:/a:amazon:linux:libreoffice-langpack-tn, p-cpe:/a:amazon:linux:autocorr-af, p-cpe:/a:amazon:linux:libreoffice-help-es, p-cpe:/a:amazon:linux:libreoffice-langpack-pa, p-cpe:/a:amazon:linux:libreoffice-langpack-zh-hans, p-cpe:/a:amazon:linux:libreoffice-langpack-pt-br, p-cpe:/a:amazon:linux:libreoffice-langpack-uk, p-cpe:/a:amazon:linux:libreoffice-pdfimport, p-cpe:/a:amazon:linux:libreoffice-ure, p-cpe:/a:amazon:linux:libreoffice-langpack-kk, p-cpe:/a:amazon:linux:libreoffice-langpack-th, p-cpe:/a:amazon:linux:libreoffice-wiki-publisher, p-cpe:/a:amazon:linux:libreoffice-langpack-nr, p-cpe:/a:amazon:linux:libreoffice-langpack-zu, p-cpe:/a:amazon:linux:libreoffice-langpack-cy, p-cpe:/a:amazon:linux:libreoffice-langpack-fr, p-cpe:/a:amazon:linux:libreoffice-langpack-nn, p-cpe:/a:amazon:linux:autocorr-sv, p-cpe:/a:amazon:linux:libreoffice-help-el, p-cpe:/a:amazon:linux:autocorr-ro, p-cpe:/a:amazon:linux:libreoffice-langpack-id, p-cpe:/a:amazon:linux:libreoffice-help-ja, p-cpe:/a:amazon:linux:libreoffice-filters, p-cpe:/a:amazon:linux:autocorr-sr, p-cpe:/a:amazon:linux:libreoffice-langpack-ve, p-cpe:/a:amazon:linux:libreoffice-langpack-bn, p-cpe:/a:amazon:linux:libreoffice-langpack-lv, p-cpe:/a:amazon:linux:libreoffice-gdb-debug-support, p-cpe:/a:amazon:linux:libreoffice-postgresql, p-cpe:/a:amazon:linux:libreoffice-help-it, p-cpe:/a:amazon:linux:autocorr-bg, p-cpe:/a:amazon:linux:libreoffice-gtk2, p-cpe:/a:amazon:linux:libreoffice-langpack-br, p-cpe:/a:amazon:linux:libreoffice-help-lv, p-cpe:/a:amazon:linux:libreoffice-langpack-de, p-cpe:/a:amazon:linux:libreoffice-langpack-ru, p-cpe:/a:amazon:linux:libreoffice-langpack-gu, p-cpe:/a:amazon:linux:libreoffice-langpack-te, p-cpe:/a:amazon:linux:libreoffice-help-id, p-cpe:/a:amazon:linux:autocorr-fi, p-cpe:/a:amazon:linux:autocorr-fa, p-cpe:/a:amazon:linux:libreoffice-help-ca, p-cpe:/a:amazon:linux:autocorr-ja, p-cpe:/a:amazon:linux:libreoffice-base, p-cpe:/a:amazon:linux:autocorr-sk, p-cpe:/a:amazon:linux:libreoffice-langpack-en, p-cpe:/a:amazon:linux:libreoffice-help-gu, p-cpe:/a:amazon:linux:libreoffice-sdk-doc, p-cpe:/a:amazon:linux:libreofficekit, p-cpe:/a:amazon:linux:libreoffice-sdk, p-cpe:/a:amazon:linux:libreoffice-help-zh-hans, p-cpe:/a:amazon:linux:libreoffice-langpack-hu, p-cpe:/a:amazon:linux:libreoffice-langpack-ro, p-cpe:/a:amazon:linux:libreoffice-help-ko, p-cpe:/a:amazon:linux:libreoffice-officebean-common, p-cpe:/a:amazon:linux:libreoffice-core, p-cpe:/a:amazon:linux:libreoffice-langpack-dz, p-cpe:/a:amazon:linux:autocorr-hu, p-cpe:/a:amazon:linux:libreoffice-langpack-hr, p-cpe:/a:amazon:linux:libreoffice-help-gl, p-cpe:/a:amazon:linux:libreoffice-langpack-or, p-cpe:/a:amazon:linux:libreoffice-help-uk, p-cpe:/a:amazon:linux:autocorr-da, p-cpe:/a:amazon:linux:autocorr-it, p-cpe:/a:amazon:linux:libreoffice-help-tr, p-cpe:/a:amazon:linux:libreoffice-glade, p-cpe:/a:amazon:linux:libreoffice-langpack-pl, p-cpe:/a:amazon:linux:autocorr-hr, p-cpe:/a:amazon:linux:libreoffice-langpack-ca, p-cpe:/a:amazon:linux:libreoffice-langpack-sk, p-cpe:/a:amazon:linux:libreoffice-help-si, p-cpe:/a:amazon:linux:libreoffice-help-pt-pt, p-cpe:/a:amazon:linux:libreoffice-impress, p-cpe:/a:amazon:linux:libreoffice-langpack-kn, p-cpe:/a:amazon:linux:autocorr-tr, p-cpe:/a:amazon:linux:libreoffice-langpack-nso, p-cpe:/a:amazon:linux:libreoffice-langpack-af, p-cpe:/a:amazon:linux:autocorr-ko, p-cpe:/a:amazon:linux:libreoffice-langpack-ta, p-cpe:/a:amazon:linux:libreoffice-data, p-cpe:/a:amazon:linux:libreoffice-langpack-fa, p-cpe:/a:amazon:linux:libreoffice-help-nl, p-cpe:/a:amazon:linux:autocorr-zh, p-cpe:/a:amazon:linux:libreoffice-langpack-ml, p-cpe:/a:amazon:linux:libreoffice-help-de, p-cpe:/a:amazon:linux:libreoffice-langpack-sl, p-cpe:/a:amazon:linux:libreoffice-graphicfilter, p-cpe:/a:amazon:linux:autocorr-is, p-cpe:/a:amazon:linux:libreoffice-help-pl, p-cpe:/a:amazon:linux:libreoffice-help-fr, p-cpe:/a:amazon:linux:libreoffice-help-ru, p-cpe:/a:amazon:linux:libreoffice-langpack-pt-pt, p-cpe:/a:amazon:linux:autocorr-pl, p-cpe:/a:amazon:linux:libreoffice-help-cs, p-cpe:/a:amazon:linux:libreoffice-ogltrans, p-cpe:/a:amazon:linux:libreoffice, p-cpe:/a:amazon:linux:libreoffice-langpack-ja, p-cpe:/a:amazon:linux:libreoffice-emailmerge, p-cpe:/a:amazon:linux:libreoffice-langpack-ss, p-cpe:/a:amazon:linux:autocorr-ga, p-cpe:/a:amazon:linux:libreoffice-help-et, p-cpe:/a:amazon:linux:libreoffice-langpack-sr, p-cpe:/a:amazon:linux:autocorr-pt, p-cpe:/a:amazon:linux:libreoffice-help-zh-hant, p-cpe:/a:amazon:linux:libreoffice-langpack-ga, p-cpe:/a:amazon:linux:libreoffice-langpack-es, p-cpe:/a:amazon:linux:libreoffice-xsltfilter, p-cpe:/a:amazon:linux:autocorr-lb, p-cpe:/a:amazon:linux:libreoffice-langpack-xh

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/21/2023

Vulnerability Publication Date: 7/17/2019

Exploitable With

Core Impact

Reference Information

CVE: CVE-2019-9848, CVE-2019-9849, CVE-2019-9850, CVE-2019-9851, CVE-2019-9852, CVE-2019-9853, CVE-2019-9854

IAVB: 2019-B-0067-S, 2019-B-0078-S