Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Template authoring privileges required (PR:H); network-reachable but scoped to file read only (C:H/I:N/A:N); no scope change beyond PHP process.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.org
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.
AnalysisAI
Smarty PHP template engine versions 5.0.0 through 5.8.3 expose a security policy bypass allowing file disclosure via the built-in stream: resource type. When Smarty Security is enabled and Security::$streams is set to null or a restricted allowlist, an attacker able to author or influence a template resource reference can use stream:php://filter/... to read arbitrary local files accessible to the PHP process - bypassing the very control intended to block such access. A public proof-of-concept was disclosed in GHSA-rjhh-76wf-8xmw; no active exploitation is confirmed in CISA KEV. The issue is fixed in v5.8.4.
Technical ContextAI
Smarty's resource-loading pipeline in BasePlugin::load() maps the built-in sysplugin name stream directly to StreamPlugin before the code path that validates PHP stream wrappers via stream_get_wrappers() and Security::isTrustedStream(). As a result, StreamPlugin::getContent() receives the nested URI (e.g., php://filter/read=convert.base64-encode/resource=/etc/passwd) and calls fopen() on it without the security policy having vetted the underlying php wrapper. The root cause is CWE-22 (Path Traversal) compounded by CWE-441 (Unintended Proxy/Intermediary), where the stream: resource acts as an unvalidated intermediary routing around the Security::$streams enforcement boundary. Affected package is smarty/smarty on Packagist, CPE cpe:2.3:a:smarty-php:smarty:*:*:*:*:*:*:*:*, versions 5.0.0 through 5.8.3.
RemediationAI
Upgrade smarty/smarty to version 5.8.4 or later via Composer (composer require smarty/smarty:^5.8.4 or composer update smarty/smarty). The fix was implemented in commit 3c9f77a2e06ce319ae0092496af32cc8f3adc52e (PR #1195) and released at https://github.com/smarty-php/smarty/releases/tag/v5.8.4. The patch adds an explicit stream-wrapper validation step inside StreamPlugin::getContent() that parses the nested URI scheme and calls isTrustedStream() before fopen(). If an immediate upgrade is blocked, the most effective compensating control is to eliminate all untrusted influence over template resource references - specifically, never pass user-controlled strings as the file parameter of {include} directives. Note that relying solely on Security::$streams = null is not a compensating control for this CVE, as that is precisely the policy being bypassed. Auditing template storage and render pipelines for user-controlled include paths is advisable regardless of patching status.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-54499
GHSA-rjhh-76wf-8xmw