CVE-2020-35239Cakephp
High 8.8 No auth needed
Follow: this CVE · Cakephp · Cakephp We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 43
- Auth required
- No
- Published
- Jan 26, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Cakephp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | cakephp/cakephp |
≥ 4.0.0 < 4.0.10 |
4.0.10 |
composer require "cakephp/cakephp:^4.0.10" |
| Packagist | cakephp/cakephp |
≥ 4.1.0 < 4.1.4 |
4.1.4 |
composer require "cakephp/cakephp:^4.1.4" |
Per OSV / GitHub Advisories (GHSA-9pgx-pf36-w46r). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| cakephp | cakephp | ≥ 4.0.0 ≤ 4.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- bakery.cakephp.org Vendor Advisory