Skip to content
OpenAdvisories
High · 8.8 CVE-2020-35239 EUVD-2022-3423GHSA-9pgx-pf36-w46r

CakePHP allows method override parameters to bypass CSRF checks

Published Jan 20, 2021 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS cakephp No fix yet —
Ubuntu 20.04 LTS cakephp No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS cakephp No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist cakephp/cakephp >= 4.0.0, < 4.0.10 4.0.10 GHSA-9pgx-pf36-w46r
Packagist cakephp/cakephp >= 4.1.0, < 4.1.4 4.1.4 GHSA-9pgx-pf36-w46r

References