{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-62993","id":"CVE-2026-62993","title":"Smarty: SSRF via redirect bypass of trusted_uri using {fetch}","description":"Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 4.5.7 and 5.8.2, depending on the release line, Smarty's {fetch} handling in libs/plugins/function.fetch.php and src/FunctionHandler/Fetch.php used Security::isTrustedUri() to validate only the initial remote URL against trusted_uri when a security policy was active. For res","descriptionLong":"Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to 4.5.7 and 5.8.2, depending on the release line, Smarty's {fetch} handling in libs/plugins/function.fetch.php and src/FunctionHandler/Fetch.php used Security::isTrustedUri() to validate only the initial remote URL against trusted_uri when a security policy was active. For resources handled by file_get_contents(), including HTTPS URLs, PHP followed HTTP redirects by default. An attacker who could supply or influence a fetch target and had an open redirect on a trusted host could redirect the request to an attacker-chosen internal endpoint, bypass the trusted_uri allowlist, and perform server-side request forgery. This issue is fixed in versions 4.5.7 and 5.8.2.","published":"2026-08-31T20:58:03.616Z","updated":"2026-10-28T02:30:45.988714207Z","reserved":"2026-07-14T23:10:57.031Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["smarty-php smarty"],"affectedProducts":[{"vendor":"smarty-php","product":"smarty","defaultStatus":null,"versions":[{"version":">= 5.0.0, < 5.8.2","status":"affected"},{"version":"< 4.5.7","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"smarty/smarty","purl":"pkg:composer/smarty/smarty","ranges":[">=5.0.0 <5.8.2","<4.5.7"],"fixed":["5.8.2","4.5.7"],"advisory":"GHSA-cq55-c7wv-pxmq"}],"cwes":["CWE-918"],"aliases":["GHSA-cq55-c7wv-pxmq"],"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/smarty-php/smarty/pull/1194","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.5.7","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62993.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62993","tags":["advisory"]},{"url":"https://github.com/smarty-php/smarty","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00574,"epssPercentile":0.48156,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-62993","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62993","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-62993","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cq55-c7wv-pxmq","ok":true,"note":"GHSA-cq55-c7wv-pxmq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-62993","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}