Skip to content

Smarty Path Traversal Vulnerability

Moderate severity GitHub Reviewed Published May 14, 2022 to the GitHub Advisory Database • Updated Feb 7, 2024

Package

composer smarty/smarty (Composer)

Affected versions

< 3.1.33

Patched versions

3.1.33

Description

Smarty before 3.1.33-dev-4 allows attackers to bypass the trusted_dir protection mechanism via a file:./../ substring in an include statement.

References

Published by the National Vulnerability Database Sep 11, 2018
Published to the GitHub Advisory Database May 14, 2022
Reviewed Jul 25, 2023
Last updated Feb 7, 2024

Severity

Moderate
5.9
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CVE ID

CVE-2018-16831

GHSA ID

GHSA-65j5-vpm7-6xp4

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.