SB2021052605 - Gentoo update for Smarty



SB2021052605 - Gentoo update for Smarty

Published: May 26, 2021

Security Bulletin ID SB2021052605
Severity
Medium
Patch available
YES
Number of vulnerabilities 2
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 2 secuirty vulnerabilities.


1) Security restrictions bypass (CVE-ID: CVE-2021-26119)

The vulnerability allows a remote user to escalate privileges within the application.

The vulnerability exists due to application does not properly impose security restrictions and allows to escape sandbox by allowing to access the $smarty.template_object. A remote user can perform template injection and execute arbitrary PHP code on the server.


2) Code Injection (CVE-ID: CVE-2021-26120)

The vulnerability allows a remote user to execute arbitrary PHP code on the target system.

The vulnerability exists due to improper input validation when processing data passed via an unexpected function name after a "{function name=" substring. A remote user can send a specially crafted request and execute arbitrary PHP code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Remediation

Install update from vendor's website.