Read the docs
TI-2026-44994 Aliases CVE-2026-62993GHSA-cq55-c7wv-pxmq

Smarty: SSRF via redirect bypass of trusted_uri using {fetch}

Priority LOW 31CWE-918Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 4.5.7 and 5.8.2, depending on the release line, Smarty's {fetch} handling in libs/plugins/function.fetch.php and src/FunctionHandler/Fetch.php used Security::isTrustedUri() to validate only the initial remote URL against trusted_uri when a security policy was active. For resources handled by file_get_contents(), including HTTPS URLs, PHP followed HTTP redirects by default. An attacker who could supply or influence a fetch target and had an open redirect on a trusted host could redirect the request to an attacker-chosen internal endpoint, bypass the trusted_uri allowlist, and perform server-side request forgery. This issue is fixed in versions 4.5.7 and 5.8.2.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00574 47th percentileScored 2026-11-07
Fix Fixed smarty (smarty-php): 5.8.2, 4.5.7smarty/smarty (Packagist): 5.8.2, 4.5.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
smarty-phpsmarty5.0.0 to before 5.8.2; before 4.5.75.8.2, 4.5.7Patch availableCNA
—smarty/smarty (Packagist)5.0.0 to before 5.8.25.8.2Patch availableGHSA-cq55-c7wv-pxmq
—smarty/smarty (Packagist)before 4.5.74.5.7Patch availableGHSA-cq55-c7wv-pxmq
  • smarty Vendorsmarty-php Affected 5.0.0 to before 5.8.2; before 4.5.7 Fixed in 5.8.2, 4.5.7 Patch available CNA
  • smarty/smarty (Packagist) Vendor— Affected 5.0.0 to before 5.8.2 Fixed in 5.8.2 Patch available GHSA-cq55-c7wv-pxmq
  • smarty/smarty (Packagist) Vendor— Affected before 4.5.7 Fixed in 4.5.7 Patch available GHSA-cq55-c7wv-pxmq

Remediation

  • Fix · CNA smarty (smarty-php) Fixed in 5.8.2, 4.5.7
  • Fix · GHSA-cq55-c7wv-pxmq smarty/smarty (Packagist) Fixed in 5.8.2 Advisory →
  • Fix · GHSA-cq55-c7wv-pxmq smarty/smarty (Packagist) Fixed in 4.5.7 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-62993
  2. 2026-10-03 Alias added: GHSA-cq55-c7wv-pxmq

References

  • TI-2021-08070 Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring. CVSS 3.1CRITICAL 9.8
  • TI-2026-68416 Code injection in Smarty via extends: inheritance cache CVSS 4.0CRITICAL 9.2
  • TI-2026-44997 Smarty Security stream restriction bypass through stream: resource CVSS 4.0MEDIUM 6.9
  • TI-2009-01585 The smarty_function_math function in libs/plugins/function.math.php in Smarty 2.6.22… CVSS 2.0HIGH 10.0
  • TI-2006-06846 PHP remote file inclusion vulnerability in libs/Smarty.class.php in Smarty 2.6.9 allows… CVSS 3.1CRITICAL 9.8
  • TI-2022-11764 PHP Code Injection by malicious block or filename in Smarty CVSS 3.1HIGH 8.8
See all 35 →

Sources