{"id":"CVE-2026-62993","state":"PUBLISHED","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 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.","publishedAt":"2026-08-31T20:58:03.616Z","updatedAt":"2026-09-02T17:36:30.257Z","severity":{"score":6.9,"label":"Medium","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["smarty-php smarty"],"affected":[{"vendor":"smarty-php","product":"smarty","versions":[{"version":">= 5.0.0, < 5.8.2","status":"affected"},{"version":"< 4.5.7","status":"affected"}]}],"references":["https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq","https://github.com/smarty-php/smarty/pull/1194","https://github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115","https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90","https://github.com/smarty-php/smarty/releases/tag/v4.5.7","https://github.com/smarty-php/smarty/releases/tag/v5.8.2"],"weaknesses":["CWE-918"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/62xxx/CVE-2026-62993.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62993","state":"PUBLISHED","datePublished":"2026-08-31T20:58:03.616Z","dateUpdated":"2026-09-02T17:36:30.257Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-14T23:10:57.031Z"},"containers":{"cna":{"title":"Smarty: SSRF via redirect bypass of trusted_uri using {fetch}","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"smarty-php","product":"smarty","versions":[{"version":">= 5.0.0, < 5.8.2","status":"affected"},{"version":"< 4.5.7","status":"affected"}]}],"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq","name":"https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/smarty-php/smarty/pull/1194","name":"https://github.com/smarty-php/smarty/pull/1194","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115","name":"https://github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90","name":"https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.5.7","name":"https://github.com/smarty-php/smarty/releases/tag/v4.5.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.2","name":"https://github.com/smarty-php/smarty/releases/tag/v5.8.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"CWE-918: Server-Side Request Forgery (SSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-31T20:58:03.616Z"},"source":{"advisory":"GHSA-cq55-c7wv-pxmq","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-02T17:36:17.333670Z","id":"CVE-2026-62993","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-02T17:36:30.257Z"}}]}}}