Source: smarty3
X-Debbugs-CC: [email protected]
Severity: grave
Tags: security
Hi,
The following vulnerabilities were published for smarty3.
Why is smarty3 still in the archive? A simulated dak run shows no
reverse deps.
CVE-2026-82531[0]:
| Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection
| vulnerability where the top-level nocache_hash is never restored
| during extends:/multi-component template inheritance, leaving it
| null. Attackers can supply assigned data containing a forged
| SmartyNocache marker that is copied verbatim into the regenerated
| PHP cache file, executing arbitrary PHP on include for remote code
| execution.
CVE-2026-62992[1]:
| Smarty is a template engine for PHP, facilitating the separation of
| presentation (HTML/CSS) from application logic. Prior to 5.8.2 (and
| 4.5.7 on the 4.x line), Security::_checkDir() does not fully resolve
| symbolic links before validating that a requested path lies within a
| configured secure directory. An attacker able to place or reference
| a symlink within a directory Smarty treats as trusted (e.g., a
| template or config directory) could use it to point outside the
| intended secure directory, bypassing the containment check and
| reading arbitrary files accessible to the PHP process. This issue is
| fixed in versions 5.8.2 and 4.5.7.
CVE-2026-62993[2]:
| 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.
If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.
For further information see:
[0] https://security-tracker.debian.org/tracker/CVE-2026-82531
https://www.cve.org/CVERecord?id=CVE-2026-82531
[1] https://security-tracker.debian.org/tracker/CVE-2026-62992
https://www.cve.org/CVERecord?id=CVE-2026-62992
[2] https://security-tracker.debian.org/tracker/CVE-2026-62993
https://www.cve.org/CVERecord?id=CVE-2026-62993
Please adjust the affected versions in the BTS as needed.