CVE-2024-35226

unknown
Published 2024-05-29 ยท Modified 2025-11-04
CVSS v3
โ€”
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
โ€”

Description

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an extends-tag. Sites that cannot fully trust template authors should update asap. All users are advised to update. There is no patch for users on the v3 branch. There are no known workarounds for this vulnerability.

Predictions

Exploit likelihood
30%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed3.1.47-2+deb12u1
debian debianbullseyefixed3.1.39-2+deb11u2
debian debianforkyfixed3.1.48-2
debian debiansidfixed3.1.48-2
debian debiantrixiefixed3.1.48-2

Package impact

EcosystemPackageVulnerableFixed
php Packagistsmarty/smarty>=5.0.0,<5.1.15.1.1
php Packagistsmarty/smarty>=3.0.0,<4.5.34.5.3

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.