{
  "id": "CVE-2026-82531",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-82531",
  "published_at": "2026-10-06T12:18:31.801Z",
  "title": "Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache",
  "vendor": "smarty-php",
  "product": "smarty",
  "cvss": {
    "score": 9.2,
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-07T05:37:26Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.7,
    "repo": "murrez/CVE-2026-82531",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 9.2
  },
  "repos": [
    {
      "repo": "murrez/CVE-2026-82531",
      "url": "https://github.com/murrez/CVE-2026-82531",
      "created_at": "2026-10-07T05:37:26Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-05-01T08:28:53Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "smarty-php",
        "product": "smarty",
        "ranges": [
          "\u003c 4.5.8",
          "\u003e= 5.0.0, \u003c 5.8.5"
        ],
        "fixed_in": [
          "4.5.8",
          "5.8.5"
        ]
      }
    ],
    "upgrade": [
      "Upgrade smarty to 4.5.8 or 5.8.5 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/smarty-php/smarty/releases/tag/v5.8.5"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/smarty-php/smarty/releases/tag/v4.5.8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
