Live threats

All CVEs / Smarty

CVE-2018-16831Smarty

Medium 5.9 No auth needed

Priority
51
CVSS 3.0
5.9
EPSS
2.7%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Sep 11, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Smarty.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist smarty/smarty < 3.1.33 3.1.33 composer require "smarty/smarty:^3.1.33"

Per OSV / GitHub Advisories (GHSA-65j5-vpm7-6xp4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartysmarty≥ 3.0.0 ≤ 3.1.32

Official sources

References

Links published by the sources. Open them with care.