🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #4433

Bug#1155682: smarty3: CVE-2026-82531 CVE-2026-62992 CVE-2026-62993

#4433
From: Moritz Mühlenhoff
Date: Sat, 28 Nov 2026 21:40
63 lines
4313 bytes
Source: smarty3
X-Debbugs-CC: team@security.debian.org
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.
Technical Details
Message-ID: <O4yjf-eKiK-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Moritz Mühlenhoff <jmm@inutil.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1155682: smarty3: CVE-2026-82531 CVE-2026-62992 CVE-2026-62993
Date: Sat, 28 Nov 2026 22:40:01 +0100
Message-ID: <O4yjf-eKiK-11@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Sat Nov 28 21:39:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Moritz Mühlenhoff <jmm@inutil.org>, 1155682@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team@security.debian.org, sunweaver@debian.org
X-Debian-Pr-Message: report 1155682
X-Debian-Pr-Package: src:smarty3
X-Debian-Pr-Keywords: security
X-Debian-Pr-Source: smarty3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/839946
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 63
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 28 Nov 2026 22:37:40 +0100
X-Original-Message-ID: <awtJpBKPS7KdMYCe@pisco.westfalen.local>