CVE-2020-35239
HIGH 8.8CVSS 3.1CakePHP allows method override parameters to bypass CSRF checks
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.
- Published
- 26 Jan 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-352
- Also known as
- GHSA-9pgx-pf36-w46r
- Sources
- NVDJSONOSV GHSA-9pgx-pf36-w46rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cakephp | cakephpcpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:* |
>= 4.0.0, <= 4.1.3 | |
| OSV | Packagist | cakephp/cakephp | >= 4.0.0, < 4.0.10 | 4.0.10 |
| OSV | Packagist | cakephp/cakephp | >= 4.1.0, < 4.1.4 | 4.1.4 |
References
- https://bakery.cakephp.org/2020/12/07/cakephp_4010_released.html · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-35239 · ADVISORY
- https://github.com/cakephp/cakephp · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Jan 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 24 May 2022)