Skip to content

CVE-2026-62993 Smarty: SSRF via redirect bypass of trusted_uri using {fetch}

MediumCVSS 6.9 EPSS 0.57%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHPUbuntuDebian

Description

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.

Upgrade path

15 packages: 3 fixed, 11 with no fix yet.

PackageAffectedFixed inStatus
debian/smarty3(Debian 12) = 3.1.47-2; = 3.1.47-2+deb12u1; = 3.1.48-1; = 3.1.48-2 +1 more No fix listed No fix yet
debian/smarty3(Debian 13) = 3.1.48-2; All versions No fix listed No fix yet
debian/smarty3(Debian 14) = 3.1.48-2; All versions No fix listed No fix yet
debian/smarty4(Debian 12) = 4.3.0-1; = 4.3.0-1+deb12u1; = 4.3.0-1+deb12u2; = 4.3.1-1 +4 more No fix listed No fix yet
ubuntu/smarty3(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/smarty3(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/smarty3(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/smarty3(Ubuntu 26.10) All versions No fix listed No fix yet
ubuntu/smarty4(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/smarty4(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/smarty4(Ubuntu 26.10) All versions No fix listed No fix yet
debian/smarty4(Debian 13) < 4.5.5-1+deb13u1; = 4.5.5-1 4.5.5-1+deb13u1 Fixed
debian/smarty4(Debian 14) < 4.5.8-1; = 4.5.5-1 4.5.8-1 Fixed
smarty/smarty(Packagist) < 4.5.7; = v2.6.24; = v2.6.25; = v2.6.26 +90 more 4.5.7, 5.8.2 Fixed
smarty-php smarty = < 4.5.7; = >= 5.0.0, < 5.8.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
smarty/smarty(Packagist) >= 5.0.0, < 5.8.2 5.8.2
smarty/smarty(Packagist) = v5.0.0 No fix listed
smarty/smarty(Packagist) = v5.0.1 No fix listed
smarty/smarty(Packagist) = v5.0.2 No fix listed
smarty/smarty(Packagist) = v5.1.0 No fix listed
smarty/smarty(Packagist) = v5.2.0 No fix listed
smarty/smarty(Packagist) = v5.3.0 No fix listed
smarty/smarty(Packagist) = v5.3.1 No fix listed
smarty/smarty(Packagist) = v5.4.0 No fix listed
smarty/smarty(Packagist) = v5.4.1 No fix listed
smarty/smarty(Packagist) = v5.4.2 No fix listed
smarty/smarty(Packagist) = v5.4.3 No fix listed
smarty/smarty(Packagist) = v5.4.4 No fix listed
smarty/smarty(Packagist) = v5.4.5 No fix listed
smarty/smarty(Packagist) = v5.5.0 No fix listed
smarty/smarty(Packagist) = v5.5.1 No fix listed
smarty/smarty(Packagist) = v5.5.2 No fix listed
smarty/smarty(Packagist) = v5.6.0 No fix listed
smarty/smarty(Packagist) = v5.7.0 No fix listed
smarty/smarty(Packagist) = v5.8.0 No fix listed
smarty/smarty(Packagist) = v5.8.1 No fix listed
smarty/smarty(Packagist) < 4.5.7 4.5.7
smarty/smarty(Packagist) = v2.6.24 No fix listed
smarty/smarty(Packagist) = v2.6.25 No fix listed
smarty/smarty(Packagist) = v2.6.26 No fix listed
Show 99 more
ProductAffected versionsFixed in
smarty/smarty(Packagist) = v2.6.27 No fix listed
smarty/smarty(Packagist) = v2.6.28 No fix listed
smarty/smarty(Packagist) = v2.6.29 No fix listed
smarty/smarty(Packagist) = v2.6.30 No fix listed
smarty/smarty(Packagist) = v2.6.31 No fix listed
smarty/smarty(Packagist) = v2.6.33 No fix listed
smarty/smarty(Packagist) = v3.1.11 No fix listed
smarty/smarty(Packagist) = v3.1.12 No fix listed
smarty/smarty(Packagist) = v3.1.13 No fix listed
smarty/smarty(Packagist) = v3.1.14 No fix listed
smarty/smarty(Packagist) = v3.1.15 No fix listed
smarty/smarty(Packagist) = v3.1.16 No fix listed
smarty/smarty(Packagist) = v3.1.17 No fix listed
smarty/smarty(Packagist) = v3.1.18 No fix listed
smarty/smarty(Packagist) = v3.1.19 No fix listed
smarty/smarty(Packagist) = v3.1.20 No fix listed
smarty/smarty(Packagist) = v3.1.21 No fix listed
smarty/smarty(Packagist) = v3.1.23 No fix listed
smarty/smarty(Packagist) = v3.1.24 No fix listed
smarty/smarty(Packagist) = v3.1.25 No fix listed
smarty/smarty(Packagist) = v3.1.26 No fix listed
smarty/smarty(Packagist) = v3.1.27 No fix listed
smarty/smarty(Packagist) = v3.1.28 No fix listed
smarty/smarty(Packagist) = v3.1.29 No fix listed
smarty/smarty(Packagist) = v3.1.30 No fix listed
smarty/smarty(Packagist) = v3.1.31 No fix listed
smarty/smarty(Packagist) = v3.1.32 No fix listed
smarty/smarty(Packagist) = v3.1.33 No fix listed
smarty/smarty(Packagist) = v3.1.34 No fix listed
smarty/smarty(Packagist) = v3.1.35 No fix listed
smarty/smarty(Packagist) = v3.1.36 No fix listed
smarty/smarty(Packagist) = v3.1.37 No fix listed
smarty/smarty(Packagist) = v3.1.37.1 No fix listed
smarty/smarty(Packagist) = v3.1.38 No fix listed
smarty/smarty(Packagist) = v3.1.39 No fix listed
smarty/smarty(Packagist) = v3.1.40 No fix listed
smarty/smarty(Packagist) = v3.1.41 No fix listed
smarty/smarty(Packagist) = v3.1.42 No fix listed
smarty/smarty(Packagist) = v3.1.43 No fix listed
smarty/smarty(Packagist) = v3.1.44 No fix listed
smarty/smarty(Packagist) = v3.1.45 No fix listed
smarty/smarty(Packagist) = v3.1.46 No fix listed
smarty/smarty(Packagist) = v3.1.47 No fix listed
smarty/smarty(Packagist) = v3.1.48 No fix listed
smarty/smarty(Packagist) = v4.0.0 No fix listed
smarty/smarty(Packagist) = v4.0.0-rc.0 No fix listed
smarty/smarty(Packagist) = v4.0.1 No fix listed
smarty/smarty(Packagist) = v4.0.2 No fix listed
smarty/smarty(Packagist) = v4.0.3 No fix listed
smarty/smarty(Packagist) = v4.0.4 No fix listed
smarty/smarty(Packagist) = v4.1.0 No fix listed
smarty/smarty(Packagist) = v4.1.1 No fix listed
smarty/smarty(Packagist) = v4.2.0 No fix listed
smarty/smarty(Packagist) = v4.2.1 No fix listed
smarty/smarty(Packagist) = v4.3.0 No fix listed
smarty/smarty(Packagist) = v4.3.1 No fix listed
smarty/smarty(Packagist) = v4.3.2 No fix listed
smarty/smarty(Packagist) = v4.3.3 No fix listed
smarty/smarty(Packagist) = v4.3.4 No fix listed
smarty/smarty(Packagist) = v4.3.5 No fix listed
smarty/smarty(Packagist) = v4.4.0 No fix listed
smarty/smarty(Packagist) = v4.4.1 No fix listed
smarty/smarty(Packagist) = v4.5.0 No fix listed
smarty/smarty(Packagist) = v4.5.1 No fix listed
smarty/smarty(Packagist) = v4.5.2 No fix listed
smarty/smarty(Packagist) = v4.5.3 No fix listed
smarty/smarty(Packagist) = v4.5.4 No fix listed
smarty/smarty(Packagist) = v4.5.5 No fix listed
smarty/smarty(Packagist) = v4.5.6 No fix listed
smarty-php smarty = >= 5.0.0, < 5.8.2 No fix listed
smarty-php smarty = < 4.5.7 No fix listed
ubuntu/smarty3(Ubuntu:22.04) All versions No fix listed
ubuntu/smarty3(Ubuntu:24.04) All versions No fix listed
ubuntu/smarty4(Ubuntu:24.04) All versions No fix listed
ubuntu/smarty3(Ubuntu:26.04) All versions No fix listed
ubuntu/smarty4(Ubuntu:26.04) All versions No fix listed
ubuntu/smarty3(Ubuntu:26.10) All versions No fix listed
ubuntu/smarty4(Ubuntu:26.10) All versions No fix listed
debian/smarty3(Debian:12) All versions No fix listed
debian/smarty3(Debian:12) = 3.1.47-2 No fix listed
debian/smarty3(Debian:12) = 3.1.47-2+deb12u1 No fix listed
debian/smarty3(Debian:12) = 3.1.48-1 No fix listed
debian/smarty3(Debian:12) = 3.1.48-2 No fix listed
debian/smarty3(Debian:13) All versions No fix listed
debian/smarty3(Debian:13) = 3.1.48-2 No fix listed
debian/smarty3(Debian:14) All versions No fix listed
debian/smarty3(Debian:14) = 3.1.48-2 No fix listed
debian/smarty4(Debian:12) All versions No fix listed
debian/smarty4(Debian:12) = 4.3.0-1 No fix listed
debian/smarty4(Debian:12) = 4.3.0-1+deb12u1 No fix listed
debian/smarty4(Debian:12) = 4.3.0-1+deb12u2 No fix listed
debian/smarty4(Debian:12) = 4.3.1-1 No fix listed
debian/smarty4(Debian:12) = 4.5.4-1 No fix listed
debian/smarty4(Debian:12) = 4.5.5-1 No fix listed
debian/smarty4(Debian:12) = 4.5.8-1 No fix listed
debian/smarty4(Debian:13) < 4.5.5-1+deb13u1 4.5.5-1+deb13u1
debian/smarty4(Debian:13) = 4.5.5-1 No fix listed
debian/smarty4(Debian:14) < 4.5.8-1 4.5.8-1
debian/smarty4(Debian:14) = 4.5.5-1 No fix listed

References