{"id":"CVE-2020-35239","published":"2021-01-20T23:37:02Z","modified":"2024-08-04T17:02:07Z","title":"A vulnerability exists in CakePHP versions 4.0.x through 4.1.3","vendor":null,"product":null,"tier":"tail","description":{"text":"A vulnerability exists in CakePHP versions 4.0.x through 4.1.3. The CsrfProtectionMiddleware component allows method override parameters to bypass CSRF checks by changing the HTTP request method to an arbitrary string that is not in the list of request methods that CakePHP checks. Additionally, the route middleware does not verify that this overriden method (which can be an arbitrary string) is actually an HTTP method.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00608,"percentile":0.50029,"provenance":"source"},"cwes":[],"references":[{"url":"https://bakery.cakephp.org/2020/12/07/cakephp_4010_released.html","tags":["x_refsource_MISC"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":10.01}]},"affected":[{"ecosystem":"Packagist","package":"cakephp/cakephp","vulnerableRanges":[">=4.0.0, <4.0.10",">=4.1.0, <4.1.4"],"patched":["4.0.10","4.1.4"],"from":["GHSA-9pgx-pf36-w46r"],"provenance":"source"}],"summary":{"text":"The CsrfProtectionMiddleware component in CakePHP versions 4.0.x through 4.1.3 can be bypassed because method override parameters can change the HTTP request method to an arbitrary string that CakePHP's CSRF checks do not recognise. The route middleware also fails to confirm that the overridden method is a genuine HTTP method, which allows that arbitrary value through.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:01Z"},"euvd":{"id":"EUVD-2022-3423","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2016-4793","published":"2017-01-23","fixed":"3.2.5","kev":false},{"cve":"CVE-2019-11458","published":"2019-05-08","fixed":"3.7.7","kev":false},{"cve":"CVE-2020-15400","published":"2020-06-30","fixed":"4.0.6","kev":false,"link":{"from":"CVE-2020-15400","to":"CVE-2020-35239","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"4.0.6","toFixed":"4.0.10","daysApart":204}]}},{"cve":"CVE-2020-35239","published":"2021-01-20","fixed":"4.1.4","kev":false},{"cve":"CVE-2023-22727","published":"2023-01-17","fixed":"4.4.10","kev":false},{"cve":"CVE-2026-23643","published":"2026-01-16","fixed":"5.3.1","kev":false},{"cve":"CVE-2026-48820","published":"2026-06-17","fixed":"5.3.6","kev":false}],"package":"Packagist:cakephp/cakephp"}}