Skip to main content
VulnerabilityPublished Updated

CVE-2024-35226: Smarty3 · In affected versions template authors could inject php code by choosing a malicious file

Affects smarty3Source GCVE Database

0
Compare
Authoritative record:CVE-2024-35226· High 7.3

Not known to be exploited · CVSS 7.3 High · fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 : patch smarty3 soon.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.3
EPSS
0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1, 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1, 3.1.39-2ubuntu1.22.04.2 +2
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.10smarty3pkg:deb/ubuntu/smarty3?arch=source&distro=stonkingOther threatsAffected
  • =3.1.48-2build1
Fixed in–
Ubuntu 26.04 LTSsmarty3pkg:deb/ubuntu/smarty3?arch=source&distro=resoluteOther threatsAffected
  • =3.1.48-2
  • =3.1.48-2build1
Fixed in–
Ubuntu 25.10smarty3pkg:deb/ubuntu/smarty3?arch=source&distro=questingOther threatsAffected
  • =3.1.48-2
Fixed in–
Ubuntu 24.04 LTSsmarty3pkg:deb/ubuntu/smarty3?arch=source&distro=nobleOther threatsAffected
  • <3.1.48-1ubuntu0.24.04.1
Fixed in
  • 3.1.48-1ubuntu0.24.04.1
Ubuntu 24.04 LTSsmarty4pkg:deb/ubuntu/smarty4?arch=source&distro=nobleOther threatsAffected
  • <4.3.1-1ubuntu0.24.04.1
Fixed in
  • 4.3.1-1ubuntu0.24.04.1
Ubuntu 22.04 LTSsmarty3pkg:deb/ubuntu/smarty3?arch=source&distro=jammyOther threatsAffected
  • <3.1.39-2ubuntu1.22.04.2
Fixed in
  • 3.1.39-2ubuntu1.22.04.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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 are no known workarounds for this vulnerability.

References

Community reviews

Loading reviews…