CakePHP allows method override parameters to bypass CSRF checks
RSS Feed
HIGH
GHSA-9pgx-pf36-w46r
CVE-2020-35239
Description:
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.
Affected Packages
| Ecosystem | Package | Vulnerable Versions | Patched Version |
|---|---|---|---|
| packagist |
cakephp/cakephp
|
>= 4.1.0, < 4.1.4>= 4.0.0, < 4.0.10 |
4.1.4
|
Actions
Advisory Details
| Published: | May 24, 2022 about 4 years ago |
| Updated: | July 10, 2026 1 day ago |
| CVSS Score: | 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| EPSS: | 0.60% 45th percentile |
| Source: | Github |
| Classification: | GENERAL |
| UUID: | GSA_kwCzR0hTQS05cGd4LXBmMzYtdzQ2cs4AAnV9 |