CVE-2026-62996: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in smarty-php smarty
Smarty versions from 5.0.0 up to but not including 5.8.4 contain a path traversal vulnerability in the stream: resource-name handling. This flaw allows an attacker who can influence template resource references to read arbitrary local files accessible to the PHP process by using php://filter-wrapped resource names. The issue is fixed starting in version 5.8.4.
AI Analysis
Technical Summary
Smarty, a PHP template engine, improperly limits pathname access in its stream: resource-name handling from versions 5.0.0 to before 5.8.4. This allows use of php://filter-wrapped resource names to read contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence template resource references can exploit this to disclose sensitive file contents outside the intended template or configuration scope. The vulnerability is identified as CWE-22 (Path Traversal) and is resolved in Smarty version 5.8.4.
Potential Impact
An attacker with the ability to create or influence template resource references can read arbitrary local files accessible to the PHP process, potentially exposing sensitive information. This could lead to information disclosure beyond the intended template or configuration files. The vulnerability requires high privileges to exploit (PR:H) and does not require user interaction or authentication beyond that.
Mitigation Recommendations
Upgrade Smarty to version 5.8.4 or later, where this path traversal vulnerability has been fixed. No other official remediation or temporary fixes are indicated. Patch status is not explicitly stated but the fix is confirmed in version 5.8.4.
CVE-2026-62996: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in smarty-php smarty
Description
Smarty versions from 5.0.0 up to but not including 5.8.4 contain a path traversal vulnerability in the stream: resource-name handling. This flaw allows an attacker who can influence template resource references to read arbitrary local files accessible to the PHP process by using php://filter-wrapped resource names. The issue is fixed starting in version 5.8.4.
CVSS v4.0
Score 6.9medium
Affected software
smarty-php
smarty
pkg:composer/smarty-php/smartyRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Smarty, a PHP template engine, improperly limits pathname access in its stream: resource-name handling from versions 5.0.0 to before 5.8.4. This allows use of php://filter-wrapped resource names to read contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence template resource references can exploit this to disclose sensitive file contents outside the intended template or configuration scope. The vulnerability is identified as CWE-22 (Path Traversal) and is resolved in Smarty version 5.8.4.
Potential Impact
An attacker with the ability to create or influence template resource references can read arbitrary local files accessible to the PHP process, potentially exposing sensitive information. This could lead to information disclosure beyond the intended template or configuration files. The vulnerability requires high privileges to exploit (PR:H) and does not require user interaction or authentication beyond that.
Mitigation Recommendations
Upgrade Smarty to version 5.8.4 or later, where this path traversal vulnerability has been fixed. No other official remediation or temporary fixes are indicated. Patch status is not explicitly stated but the fix is confirmed in version 5.8.4.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-14T23:10:57.032Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a75f942bf8831d53989abc3
Added to database: 08/07/2026, 15:26:58 UTC
Last enriched: 08/14/2026, 16:06:47 UTC
Last updated: 09/21/2026, 22:01:36 UTC
Views: 58
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.