CVE catalog

CVE-2026-62993

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 i

[CVE catalog]

Severity
High · CVSS 8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.57% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansmarty3sid3.1.48-2vulnerable
Debiansmarty3forky3.1.48-2vulnerable
Debiansmarty3trixie3.1.48-2vulnerable
Debiansmarty3bookworm3.1.47-2+deb12u1vulnerable
Debiansmarty3bookworm-security3.1.47-2+deb12u1vulnerable
Debiansmarty4sid4.5.5-1vulnerable
Debiansmarty4forky4.5.5-1vulnerable
Debiansmarty4trixie4.5.5-1vulnerable
Debiansmarty4bookworm4.3.0-1+deb12u2vulnerable
Debiansmarty4bookworm-security4.3.0-1+deb12u2vulnerable
Composersmarty/smartyNot reported4.5.7fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansmarty3sourcesid(unfixed)not yet assignedNot reportedNot reported
Debiansmarty3sourceforky(unfixed)not yet assignedNot reportedNot reported
Debiansmarty3sourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiansmarty3sourcebookworm(unfixed)not yet assignedNot reportedNot reported
Debiansmarty4sourcesid(unfixed)not yet assignedNot reported[1150507]
Debiansmarty4sourceforky(unfixed)not yet assignedNot reported[1150507]
Debiansmarty4sourcetrixie(unfixed)not yet assignedNot reported[1150507]
Debiansmarty4sourcebookworm(unfixed)not yet assignedNot reported[1150507]
Composersmarty/smartycomposerNot reported4.5.7Not reportedGHSA-CQ55-C7WV-PXMQNot reported

[Debian bug #1150507]

Notes

[trixie] smarty3: Minor issue [bookworm] smarty3: Minor issue [trixie] smarty4: Minor issue [bookworm] smarty4: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [smarty3]Affected
    Details (4)
    • 3.1.47-2+deb12u1 · all · bookworm

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

    • 3.1.47-2+deb12u1 · all · bookworm-security

      Affected

      nvd · smarty3 · debian · bookworm; nvd · smarty3 · debian · 12

  • [smarty4]Affected
    Details (4)
    • 4.3.0-1+deb12u2 · all · bookworm

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm-security

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

    • 4.3.0-1+deb12u2 · all · bookworm-security

      Affected

      nvd · smarty4 · debian · bookworm; nvd · smarty4 · debian · 12

[Debian 13 (Trixie)]

  • [smarty3]Affected
    Details (2)
    • 3.1.48-2 · all · trixie

      Affected

      nvd · smarty3 · debian · 13

    • 3.1.48-2 · all · trixie

      Affected

      nvd · smarty3 · debian · 13

  • [smarty4]Affected
    Details (2)
    • 4.5.5-1 · all · trixie

      Affected

      nvd · smarty4 · debian · 13

    • 4.5.5-1 · all · trixie

      Affected

      nvd · smarty4 · debian · 13

Observed:

References