CVEfocus › CVE database › CVE-2026-62996

CVE-2026-62996Smarty Security stream restriction bypass through stream: resource

CVSS 6.9 MediumEPSS 0.5% (higher than 37% of CVEs)Published 2026-08-07Updated 2026-08-07Assigner: GitHub_M

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. From 5.0.0 until 5.8.4, Smarty's stream: resource-name handling does not adequately restrict which PHP stream wrappers and filter chains can be referenced from a template, allowing a php://filter-wrapped resource name to be used to read the contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence a template's resource reference could exploit this to disclose sensitive file contents outside the intended template/config scope. This issue is fixed in version 5.8.4.

CWE-22

What to do

Fixed builds are available from Packagist: 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

1Fixed
5Fix pending
5Under investigation

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 26.10smarty3Fix pendingUBUNTU-CVE-2026-62996
Ubuntu 26.10smarty4Fix pendingUBUNTU-CVE-2026-62996
Ubuntu 26.04smarty3Under investigationUBUNTU-CVE-2026-62996
Ubuntu 26.04smarty4Under investigationUBUNTU-CVE-2026-62996
Ubuntu 24.04smarty3Under investigationUBUNTU-CVE-2026-62996
Ubuntu 24.04smarty4Under investigationUBUNTU-CVE-2026-62996
Ubuntu 22.04smarty3Under investigationUBUNTU-CVE-2026-62996
Ubuntu 20.04smarty3Fix pendingUBUNTU-CVE-2026-62996
Ubuntu 18.04smarty3Fix pendingUBUNTU-CVE-2026-62996
Ubuntu 16.04smarty3Fix pendingUBUNTU-CVE-2026-62996
Packagist librarysmarty/smartyFixed5.8.4GHSA-rjhh-76wf-8xmw

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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.