Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-62996: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in smarty-php smarty

0
Medium
VulnerabilityCVE-2026-62996cvecve-2026-62996cwe-22
Published: 08/07/2026 (08/07/2026, 15:04:52 UTC)
Source: CVE Database V5
Vendor/Project: smarty-php
Product: 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 in version 5.8.4.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Packagistmore threats →ai
smarty-php/smarty
pkg:composer/smarty-php/smarty
Affected versions
<5.8.4 >=5.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/07/2026, 15:49:04 UTC

Technical Analysis

Smarty, a PHP template engine, improperly limits pathname access in its stream: resource-name handling from versions 5.0.0 through 5.8.3. This allows an attacker with the ability to author or influence template resource references to exploit php://filter wrappers to read arbitrary local files accessible by the PHP process. The vulnerability is classified as CWE-22 (Path Traversal). The flaw is resolved in Smarty version 5.8.4.

Potential Impact

An attacker able to control or influence template resource references can disclose sensitive file contents outside the intended template or configuration scope. This can lead to exposure of sensitive information stored on the server accessible to the PHP process. No remote code execution or privilege escalation is indicated. The CVSS 4.0 base score is 6.9 (medium severity), reflecting network attack vector, low attack complexity, and high impact on confidentiality.

Mitigation Recommendations

Upgrade Smarty to version 5.8.4 or later, where this vulnerability is fixed. There is no indication of alternative mitigations or temporary workarounds. Users should apply the official fix to prevent exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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
Remediation Level
null

Threat ID: 6a75f942bf8831d53989abc3

Added to database: 08/07/2026, 15:26:58 UTC

Last enriched: 08/07/2026, 15:49:04 UTC

Last updated: 08/07/2026, 16:00:32 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses