{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-28116",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Grav is an open-source, flat-file content management system. Grav CMS prior to version 1.7.45 is vulnerable to a Server-Side Template Injection (SSTI), which allows any authenticated user (editor permissions are sufficient) to execute arbitrary code on the remote server bypassing the existing security sandbox. Version 1.7.45 contains a patch for this issue."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-94: Improper Control of Generation of Code ('Code Injection')",
                        "cweId": "CWE-94"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine",
                        "cweId": "CWE-1336"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "getgrav",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "grav",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "< 1.7.45"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/getgrav/grav/security/advisories/GHSA-c9gp-64c4-2rrh",
                "refsource": "MISC",
                "name": "https://github.com/getgrav/grav/security/advisories/GHSA-c9gp-64c4-2rrh"
            },
            {
                "url": "https://github.com/getgrav/grav/commit/4149c81339274130742831422de2685f298f3a6e",
                "refsource": "MISC",
                "name": "https://github.com/getgrav/grav/commit/4149c81339274130742831422de2685f298f3a6e"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-c9gp-64c4-2rrh",
        "discovery": "UNKNOWN"
    },
    "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"
            }
        ]
    }
}