{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.8.4"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "e161babbd49840de2ae7a5e358e59f52d66c1f0a"
            },
            {
              "fixed": "3c9f77a2e06ce319ae0092496af32cc8f3adc52e"
            },
            {
              "fixed": "94a27cbbc7820198d7adc17a2be8d457fb267753"
            }
          ],
          "repo": "https://github.com/smarty-php/smarty",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-rjhh-76wf-8xmw"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62996.json"
  },
  "details": "Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. From 5.0.0 until 5.8.4, Smarty's stream: resource-name handling does not adequately restrict which PHP stream wrappers and filter chains can be referenced from a template, allowing a php://filter-wrapped resource name to be used to read the contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence a template's resource reference could exploit this to disclose sensitive file contents outside the intended template/config scope. This issue is fixed in version 5.8.4.",
  "id": "CVE-2026-62996",
  "modified": "2026-08-09T03:30:14.570482081Z",
  "published": "2026-08-07T15:04:52.662Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/smarty-php/smarty/releases/tag/v5.8.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62996.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-62996"
    },
    {
      "type": "FIX",
      "url": "https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/smarty-php/smarty/pull/1195"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Smarty Security stream restriction bypass through stream: resource"
}