{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-82531 exists.","fix":"No fix has been published for CVE-2026-82531 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-82531 is a critical code injection vulnerability in smarty-php smarty, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-82531 and fix it if it is affected.\n\nWhat it is: CVE-2026-82531 is a critical code injection vulnerability in smarty-php smarty, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-82531 exists.\n\nAffected product: smarty-php smarty. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-82531/ (Markdown: https://insights.sbomify.com/CVE-2026-82531/index.md)","id":"CVE-2026-82531","markdown":"https://insights.sbomify.com/CVE-2026-82531/index.md","name":"CVE-2026-82531","record":{"aliases":["DEBIAN-CVE-2026-82531","GHSA-3w63-v7pm-cq9x","UBUNTU-CVE-2026-82531"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP template engine","requires_auth":"none","summary":"Attackers can execute arbitrary PHP code by injecting forged nocache markers into template inheritance caches, affecting applications using the Smarty library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-10-07","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-10-07T05:37:26Z","kind":"github_poc","ref":"https://github.com/murrez/CVE-2026-82531","stars":1,"title":"Smarty is vulnerable to code injection through template inheritance. Crafted assigned data can inject a forged SmartyNocache marker into regenerated PHP cache files, potentially allowing attackers to execute arbitrary PHP code. The issue affects Smarty 4.5.7 and earlier, and 5.8.4 and earlier."}],"tier":"weaponised"},"has_fix":false,"headline":"Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache","id":"CVE-2026-82531","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":6,"next":{"headline":"DeepSeek Harness \u003c 0.1.2-alpha.1 Authentication Bypass via Host Header Spoofing","id":"CVE-2026-82533"},"packages":[],"prev":{"headline":"IP2Location Country Blocker \u003c 2.45.0 Access Control Bypass via X-Real-IP Header","id":"CVE-2026-82530"},"products":["smarty"],"published":"2026-10-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-06","vendors":["smarty-php"]},"summary":"Attackers can execute arbitrary PHP code by injecting forged nocache markers into template inheritance caches, affecting applications using the Smarty library.","url":"https://insights.sbomify.com/CVE-2026-82531/"}