CVEfocus › CVE database › CVE-2018-16831

CVE-2018-16831

CVSS 5.9 MediumEPSS 2.7% (higher than 86% of CVEs)Published 2018-09-11Updated 2024-08-05Assigner: mitre

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

What to do

Fixed builds are available from Debian, Packagist, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
1Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04smarty3Not affected
vulnerable_code_not_present
Ubuntu 18.04smarty3Fixed3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1UBUNTU-CVE-2018-16831
Ubuntu 16.04smarty3Not affected
vulnerable_code_not_present
Ubuntu 14.04smarty3Fix pending
Debian 14smarty3Fixed3.1.33+20180830.1.3a78a21f+selfpack1-1DEBIAN-CVE-2018-16831
Debian 13smarty3Fixed3.1.33+20180830.1.3a78a21f+selfpack1-1DEBIAN-CVE-2018-16831
Debian 12smarty3Fixed3.1.33+20180830.1.3a78a21f+selfpack1-1DEBIAN-CVE-2018-16831
Packagist librarysmarty/smartyFixed3.1.33GHSA-65j5-vpm7-6xp4

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.