{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-82531", "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10", "state": "PUBLISHED", "assignerShortName": "VulnCheck", "dateReserved": "2026-08-29T17:20:57.082Z", "datePublished": "2026-10-06T12:18:31.801Z", "dateUpdated": "2026-10-06T12:47:10.950Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10", "shortName": "VulnCheck", "dateUpdated": "2026-10-06T12:18:31.801Z" }, "datePublic": "2026-10-04T00:00:00.000Z", "title": "Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache", "descriptions": [ { "lang": "en", "value": "Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where the top-level nocache_hash is never restored during extends:/multi-component template inheritance, leaving it null. Attackers can supply assigned data containing a forged SmartyNocache marker that is copied verbatim into the regenerated PHP cache file, executing arbitrary PHP on include for remote code execution." } ], "problemTypes": [ { "descriptions": [ { "lang": "en", "description": "Improper Control of Generation of Code ('Code Injection')", "cweId": "CWE-94", "type": "CWE" } ] } ], "affected": [ { "vendor": "smarty-php", "product": "smarty", "defaultStatus": "unaffected", "versions": [ { "version": "0", "status": "affected", "versionType": "semver", "lessThan": "4.5.8" }, { "version": "5.0.0", "status": "affected", "versionType": "semver", "lessThan": "5.8.5" }, { "version": "4.5.8", "status": "unaffected", "versionType": "semver" }, { "version": "5.8.5", "status": "unaffected", "versionType": "semver" } ], "packageURL": "pkg:composer/smarty/smarty", "repo": "https://github.com/smarty-php/smarty" } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:newmediacompany:smarty:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.5.8" }, { "vulnerable": true, "criteria": "cpe:2.3:a:newmediacompany:smarty:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0.0", "versionEndExcluding": "5.8.5" } ] } ] } ], "metrics": [ { "format": "CVSS", "cvssV4_0": { "version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "baseScore": 9.2, "baseSeverity": "CRITICAL" } }, { "format": "CVSS", "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 8.1, "baseSeverity": "HIGH" } } ], "references": [ { "url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x", "tags": [ "vendor-advisory" ], "name": "GitHub Security Advisory (GHSA-3w63-v7pm-cq9x)" }, { "url": "https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414", "tags": [ "patch" ] }, { "url": "https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d", "tags": [ "patch" ] }, { "url": "https://github.com/smarty-php/smarty/releases/tag/v5.8.5", "tags": [ "release-notes" ], "name": "smarty v5.8.5 Release Notes" }, { "url": "https://github.com/smarty-php/smarty/releases/tag/v4.5.8", "tags": [ "release-notes" ], "name": "smarty v4.5.8 Release Notes" }, { "name": "VulnCheck Advisory: Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache", "tags": [ "third-party-advisory" ], "url": "https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cache" } ], "credits": [ { "lang": "en", "value": "MegaManSec", "type": "reporter" } ], "x_generator": { "engine": "vulncheck-endgame" } }, "adp": [ { "references": [ { "url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x", "tags": [ "exploit" ] } ], "metrics": [ { "other": { "type": "ssvc", "content": { "timestamp": "2026-10-06T12:44:36.819504Z", "id": "CVE-2026-82531", "options": [ { "Exploitation": "poc" }, { "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": "2026-10-06T12:47:10.950Z" } } ] } }