{"containers":{"cna":{"affected":[{"product":"grav","vendor":"getgrav","versions":[{"status":"affected","version":"< 1.7.11"}]}],"descriptions":[{"lang":"en","value":"Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"{\"CWE-94\":\"Improper Control of Generation of Code ('Code Injection')\"}","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2022-08-02T15:09:46.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc"},{"tags":["x_refsource_MISC"],"url":"https://packagist.org/packages/getgrav/grav"},{"tags":["x_refsource_MISC"],"url":"http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html"},{"tags":["x_refsource_MISC"],"url":"https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities"}],"source":{"advisory":"GHSA-g8r4-p96j-xfxc","discovery":"UNKNOWN"},"title":"Twig allowing dangerous PHP functions by default","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-29440","STATE":"PUBLIC","TITLE":"Twig allowing dangerous PHP functions by default"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"grav","version":{"version_data":[{"version_value":"< 1.7.11"}]}}]},"vendor_name":"getgrav"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"{\"CWE-94\":\"Improper Control of Generation of Code ('Code Injection')\"}"}]}]},"references":{"reference_data":[{"name":"https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc","refsource":"CONFIRM","url":"https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc"},{"name":"https://packagist.org/packages/getgrav/grav","refsource":"MISC","url":"https://packagist.org/packages/getgrav/grav"},{"name":"http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html"},{"name":"https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities","refsource":"MISC","url":"https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities"}]},"source":{"advisory":"GHSA-g8r4-p96j-xfxc","discovery":"UNKNOWN"}}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-03T22:02:51.882Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://packagist.org/packages/getgrav/grav"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities"}]}]},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2021-29440","datePublished":"2021-04-13T19:55:13.000Z","dateReserved":"2021-03-30T00:00:00.000Z","dateUpdated":"2024-08-03T22:02:51.882Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}