{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2021-21408",
        "STATE": "PUBLIC",
        "TITLE": "Access to restricted PHP code by dynamic static class access in smarty"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "smarty",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 3.1.43"
                                        },
                                        {
                                            "version_value": ">= 4.0.0, < 4.0.3"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "smarty-php"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 to receive a patch."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-20: Improper Input Validation"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m",
                "refsource": "CONFIRM",
                "url": "https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m"
            },
            {
                "name": "https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664",
                "refsource": "MISC",
                "url": "https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664"
            },
            {
                "name": "https://github.com/smarty-php/smarty/releases/tag/v3.1.43",
                "refsource": "MISC",
                "url": "https://github.com/smarty-php/smarty/releases/tag/v3.1.43"
            },
            {
                "name": "https://github.com/smarty-php/smarty/releases/tag/v4.0.3",
                "refsource": "MISC",
                "url": "https://github.com/smarty-php/smarty/releases/tag/v4.0.3"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20220505 [SECURITY] [DLA 2995-1] smarty3 security update",
                "url": "https://lists.debian.org/debian-lts-announce/2022/05/msg00005.html"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-5151",
                "url": "https://www.debian.org/security/2022/dsa-5151"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202209-09",
                "url": "https://security.gentoo.org/glsa/202209-09"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-52154efd61",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L777JIBIWJV34HS7LXPIDWASG7TT4LNI/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-d5fc9dcdd7",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BRAJVDRGCIY5UZ2PQHKDTT7RMKG6WJQQ/"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-4h9c-v5vg-5m6m",
        "discovery": "UNKNOWN"
    }
}