{"schemaVersion":3,"id":"CVE-2024-35226","aliases":["UBUNTU-CVE-2024-35226","USN-7377-1","DEBIAN-CVE-2024-35226","DSA-5830-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-05-28T20:55:00.884Z","modified":"2025-11-03T21:54:58.981Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":5.4,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":5.4,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00507,"percentile":0.421,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00507},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00507,"percentile":0.421}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00507,"percentile":0.421}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"debian","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty3","purlType":"deb","versions":[{"text":"< 3.1.47-2+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.48-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.47-2+deb12u1 | < 3.1.48-2","eol":null,"hubHref":null},{"vendor":"debian","product":"smarty4","name":"smarty4","label":"smarty4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty4","purlType":"deb","versions":[{"text":"< 4.5.4-1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.3.0-1+deb12u2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.4-1 | < 4.3.0-1+deb12u2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/smarty3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.39-2ubuntu1.22.04.2","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.48-1ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 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 | < 3.1.48-1ubuntu0.24.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"smarty4","name":"smarty4","label":"smarty4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/smarty4","purlType":"deb","versions":[{"text":"< 4.3.1-1ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.3.1-1ubuntu0.24.04.1","eol":null,"hubHref":null},{"vendor":"smarty-php","product":"smarty","name":"smarty","label":"smarty","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0, < 5.1.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 4.5.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.1.1 | ≥ 3.0.0, < 4.5.3","eol":null,"hubHref":"/vendor/smarty-php/smarty"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w","label":"github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a","label":"github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html","label":"lists.debian.org/debian-lts-announce/2024/11/msg00013.html","hostname":"lists.debian.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2024-35226","label":"ubuntu.com/security/CVE-2024-35226","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-35226","label":"www.cve.org/CVERecord?id=CVE-2024-35226","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/smarty-php/smarty/commit/76881c8d33d80648f70c9b0339f770f5f69a87a2","label":"github.com/smarty-php/smarty/commit/76881c8d33d80648f70c9b0339f770f5f69a87a2","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7158-1","label":"ubuntu.com/security/notices/USN-7158-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7377-1","label":"ubuntu.com/security/notices/USN-7377-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-35226","label":"security-tracker.debian.org/tracker/CVE-2024-35226","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3956-1","DSA-5826-1","USN-7158-1"],"duplicates":[],"related":["USN-7158-1"]},"timeline":[{"kind":"published","date":"2024-05-28T20:55:00.884Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T21:54:58.981Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:42:31.286Z","stale":false,"partial":false}}