CVE-2026-62996 json
Smarty Security stream restriction bypass through stream: resource
published 2026-08-07 3 mo ago modified 2026-10-24 15 d ago also EUVD-2026-54499 , GHSA-rjhh-76wf-8xmw
- cvss
- 6.9
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist smarty/smarty 5.8.4
- smarty smarty 5.8.4
- github.com/smarty-php/smarty@3c9f77a commit
- github.com/smarty-php/smarty#1195 pull request
- github.com/smarty-php/smarty/releases/tag/v5.8.4 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-62996 updated cvss 4.9
php-smarty: Smarty Security stream restriction bypass through stream: resource
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | 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 |
| CNA | 4.0 | 6.9 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | smarty/smarty | >=5.0.0, <5.8.4 |
5.8.4 |
Affected products
- smarty-php smarty
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/smarty-php/smarty/pull/1195
web
-
github.com
/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e
web
-
github.com
/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw
exploit, web
-
github.com
/smarty-php/smarty/releases/tag/v5.8.4
web
-
github.com
/smarty-php/smarty
package
Sources
- CVE List CVE-2026-62996
- GitHub Advisory GHSA-rjhh-76wf-8xmw
- NVD CVE-2026-62996
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.