Vulnerability Name:

CVE-2018-16831 (CCN-149717)

Assigned:2018-09-05
Published:2018-09-05
Updated:2018-11-16
Summary:Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.
CVSS v3 Severity:5.9 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N)
5.2 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): None
Availibility (A): None
7.5 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
6.5 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): High
Availibility (A): None
CVSS v2 Severity:7.1 High (CVSS v2 Vector: AV:N/AC:M/Au:N/C:C/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): None
Availibility (A): None
7.8 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:C/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Complete
Availibility (A): None
Vulnerability Type:CWE-22
Vulnerability Consequences:Bypass Security
References:Source: MITRE
Type: CNA
CVE-2018-16831

Source: XF
Type: UNKNOWN
smarty-cve201816831-sec-bypass(149717)

Source: CCN
Type: smarty GIT Repository
even you enable secrity .trusted_dir can be bypassed #486

Source: MISC
Type: Exploit, Third Party Advisory
https://github.com/smarty-php/smarty/issues/486

Vulnerable Configuration:Configuration 1:
  • cpe:/a:smarty:smarty:*:*:*:*:*:*:*:* (Version >= 3.0.0 and <= 3.1.32)

  • Configuration CCN 1:
  • cpe:/a:smarty:smarty:3.1.32:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.disco:def:2018168310000000
    V
    CVE-2018-16831 on Ubuntu 19.04 (disco) - medium.
    2018-09-11
    oval:com.ubuntu.bionic:def:201816831000
    V
    CVE-2018-16831 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-09-11
    oval:com.ubuntu.cosmic:def:2018168310000000
    V
    CVE-2018-16831 on Ubuntu 18.10 (cosmic) - medium.
    2018-09-11
    oval:com.ubuntu.cosmic:def:201816831000
    V
    CVE-2018-16831 on Ubuntu 18.10 (cosmic) - medium.
    2018-09-11
    oval:com.ubuntu.bionic:def:2018168310000000
    V
    CVE-2018-16831 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-09-11
    oval:com.ubuntu.trusty:def:201816831000
    V
    CVE-2018-16831 on Ubuntu 14.04 LTS (trusty) - medium.
    2018-09-11
    oval:com.ubuntu.xenial:def:2018168310000000
    V
    CVE-2018-16831 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-09-11
    oval:com.ubuntu.xenial:def:201816831000
    V
    CVE-2018-16831 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-09-11
    BACK
    smarty smarty *
    smarty smarty 3.1.32