{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-62993",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-07-14T23:10:57.031Z",
        "datePublished": "2026-08-31T20:58:03.616Z",
        "dateUpdated": "2026-08-31T20:58:03.616Z"
    },
    "containers": {
        "cna": {
            "title": "Smarty: SSRF via redirect bypass of trusted_uri using {fetch}",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-918",
                            "lang": "en",
                            "description": "CWE-918: Server-Side Request Forgery (SSRF)",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "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"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-cq55-c7wv-pxmq"
                },
                {
                    "name": "https://github.com/smarty-php/smarty/pull/1194",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/smarty-php/smarty/pull/1194"
                },
                {
                    "name": "https://github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/smarty-php/smarty/commit/31e06fc087a8b5a9b236c1e5dacc1c2850a2c115"
                },
                {
                    "name": "https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/smarty-php/smarty/commit/a1ccdb0518021a559b4066c37b76a42c86bbce90"
                },
                {
                    "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/v4.5.7"
                },
                {
                    "name": "https://github.com/smarty-php/smarty/releases/tag/v5.8.2",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/smarty-php/smarty/releases/tag/v5.8.2"
                }
            ],
            "affected": [
                {
                    "vendor": "smarty-php",
                    "product": "smarty",
                    "versions": [
                        {
                            "version": ">= 5.0.0, < 5.8.2",
                            "status": "affected"
                        },
                        {
                            "version": "< 4.5.7",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-08-31T20:58:03.616Z"
            },
            "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."
                }
            ],
            "source": {
                "advisory": "GHSA-cq55-c7wv-pxmq",
                "discovery": "UNKNOWN"
            }
        }
    }
}