Ubuntu 16.04 ESM : Smarty vulnerabilities (USN-5348-2)

critical Nessus Plugin ID 183613

Synopsis

The remote Ubuntu host is missing one or more security updates.

Description

The remote Ubuntu 16.04 ESM host has a package installed that is affected by multiple vulnerabilities as referenced in the USN-5348-2 advisory.

USN-5348-1 fixed several vulnerabilities in Smarty. This update provides the fixes for CVE-2021-21408, CVE-2021-26119, CVE-2021-26120 and CVE-2021-29454 for Ubuntu 16.04 ESM.

Original advisory details:

David Gnedt and Thomas Konrad discovered that Smarty was incorrectly

sanitizing the paths present in the templates. An attacker could possibly

use this use to read arbitrary files when controlling the executed

template. (CVE-2018-13982)

It was discovered that Smarty was incorrectly sanitizing the paths

present in the templates. An attacker could possibly use this use to read

arbitrary files when controlling the executed template. (CVE-2018-16831)

It was discovered that Smarty was incorrectly validating security policy

data, allowing the execution of static classes even when not permitted by

the security settings. An attacker could possibly use this issue to

execute arbitrary code. (CVE-2021-21408)

It was discovered that Smarty was incorrectly managing access control to

template objects, which allowed users to perform a sandbox escape. An

attacker could possibly use this issue to send specially crafted input to

applications that use Smarty and execute arbitrary code. (CVE-2021-26119)

It was discovered that Smarty was not checking for special characters

when setting function names during plugin compile operations. An attacker

could possibly use this issue to send specially crafted input to

applications that use Smarty and execute arbitrary code. (CVE-2021-26120)

It was discovered that Smarty was incorrectly sanitizing characters in

math strings processed by the math function. An attacker could possibly

use this issue to send specially crafted input to applications that use

Smarty and execute arbitrary code. (CVE-2021-29454)

Tenable has extracted the preceding description block directly from the Ubuntu security advisory.

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

Solution

Update the affected smarty3 package.

See Also

https://ubuntu.com/security/notices/USN-5348-2

Plugin Details

Severity: Critical

ID: 183613

File Name: ubuntu_USN-5348-2.nasl

Version: 1.1

Type: local

Agent: unix

Published: 10/20/2023

Updated: 8/27/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2021-26120

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:canonical:ubuntu_linux:smarty3, cpe:/o:canonical:ubuntu_linux:16.04:-:esm

Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release

Exploit Ease: No known exploits are available

Patch Publication Date: 3/28/2022

Vulnerability Publication Date: 2/22/2021

Reference Information

CVE: CVE-2021-21408, CVE-2021-26119, CVE-2021-26120, CVE-2021-29454

USN: 5348-2