{"id":"CVE-2022-2073","published":"2022-06-29T18:20:11Z","modified":"2024-08-03T00:24:44Z","title":"Code Injection in getgrav/grav","vendor":"getgrav","product":"getgrav/grav","tier":"tail","description":{"text":"Code Injection in GitHub repository getgrav/grav prior to 1.7.34.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.10906,"percentile":0.95868,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://huntr.dev/bounties/3ef640e6-9e25-4ecb-8ec1-64311d63fe66","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83","tags":["x_refsource_MISC"]}],"priority":{"score":25.5,"factors":[{"name":"EPSS percentile","points":19.17},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"getgrav/grav","versions":[">= unspecified, < 1.7.34"]}],"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<1.7.34"],"patched":["1.7.34"],"from":["GHSA-cxgw-r5jg-7xwq"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-6030","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2022-2073","children":[{"from":"CVE-2022-2073","to":"CVE-2023-34448","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"Prior to version 1.7.42, the patch for CVE-2022-2073, a server-side template injection vulnerability in Grav leveraging the default `filter()` function, did not block other built-in functions exposed by Twig's Core Extension that could be…","from":"CVE.org","in":"CVE-2023-34448"},{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83","https://github.com/getgrav/grav/commit/8c2c1cb72611a399f13423fc6d0e1d998c03e5c8","https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec"],"basis":"shared function","functions":["getFilters","ofTypeFunc"]}]},{"from":"CVE-2022-2073","to":"CVE-2023-34251","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83","https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec"],"basis":"shared function","functions":["getFilters","ofTypeFunc"]}]},{"from":"CVE-2022-2073","to":"CVE-2023-34252","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83","https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec","https://github.com/getgrav/grav/commit/71bbed12f950de8335006d7f91112263d8504f1b"],"basis":"shared function","functions":["getFilters","ofTypeFunc"]}]},{"from":"CVE-2022-2073","to":"CVE-2023-34253","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83","https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec","https://github.com/getgrav/grav/commit/71bbed12f950de8335006d7f91112263d8504f1b"],"basis":"shared function","functions":["getFilters","ofTypeFunc"]}]}],"packageHistory":[{"cve":"CVE-2022-0743","published":"2022-02-28","fixed":"1.7.31","kev":false},{"cve":"CVE-2022-0970","published":"2022-03-15","fixed":"1.7.31","kev":false},{"cve":"CVE-2022-1173","published":"2022-04-26","fixed":"1.7.33","kev":false,"link":{"from":"CVE-2022-1173","to":"CVE-2022-2073","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"1.7.33","toFixed":"1.7.34","daysApart":64}]}},{"cve":"CVE-2022-2073","published":"2022-06-29","fixed":"1.7.34","kev":false},{"cve":"CVE-2023-34251","published":"2023-06-14","fixed":"1.7.42","kev":false},{"cve":"CVE-2023-34252","published":"2023-06-14","fixed":"1.7.42","kev":false},{"cve":"CVE-2023-34253","published":"2023-06-14","fixed":"1.7.42","kev":false}],"package":"Packagist:getgrav/grav"}}