{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35226","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2024-05-14T15:39:41.784Z","datePublished":"2024-05-28T20:55:00.884Z","dateUpdated":"2025-11-03T21:54:58.981Z"},"containers":{"cna":{"title":"PHP Code Injection by malicious attribute in extends-tag in Smarty","problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"references":[{"name":"https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w","tags":["x_refsource_CONFIRM"],"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w"},{"name":"https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a","tags":["x_refsource_MISC"],"url":"https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a"}],"affected":[{"vendor":"smarty-php","product":"smarty","versions":[{"version":">= 5.0.0, < 5.1.1","status":"affected"},{"version":">= 3.0.0, < 4.5.3","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2024-05-28T20:55:00.884Z"},"descriptions":[{"lang":"en","value":"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."}],"source":{"advisory":"GHSA-4rmg-292m-wg3w","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"name":"https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w","tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w"},{"name":"https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a","tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a"},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html"}],"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2025-11-03T21:54:58.981Z"}},{"affected":[{"vendor":"smarty-php","product":"smarty","cpes":["cpe:2.3:a:smarty-php:smarty:*:*:*:*:*:*:*:*"],"defaultStatus":"unknown","versions":[{"version":"5.0.0","status":"affected","lessThan":"5.1.1","versionType":"custom"},{"version":"3.0.0","status":"affected","lessThan":"4.5.3","versionType":"custom"}]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-03T18:08:18.966927Z","id":"CVE-2024-35226","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-03T18:10:29.110Z"}}]}}