Intel

AIKIDO-2026-829650

cakephp/authentication is vulnerable to Authentication Bypass

Authentication BypassCVE-2026-77337 Published 2 days ago

100

Critical Risk

This Affects:

PHPcakephp/authentication
0.0.1 - 2.11.1
Fixed in 2.11.2
3.0.0 - 3.3.6
Fixed in 3.3.7
4.0.0 - 4.2.0
Fixed in 4.2.1
Are you affected? Scan for Free

TL;DR

The CookieAuthenticator component persists the authentication identity in a cookie whose contents are not cryptographically verified when cookie encryption is not enabled. Because the token is not authenticated, user-controlled cookie values can be forged to impersonate arbitrary identities and pass authentication without valid credentials. Malformed tokens can additionally drive legacy password hashing with unbounded work factors, causing CPU and memory exhaustion. The fix introduces a verified three-part HMAC-SHA256 token format with expiry and strict shape validation and caps legacy hash work factors.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the CookieAuthenticator without cookie encryption enabled for its cookie.

Background info

cakephp/authentication is vulnerable to Authentication Bypass in versions 0.0.1 - 2.11.1, 3.0.0 - 3.3.6 and 4.0.0 - 4.2.0.

How to fix this

Upgrade the cakephp/authentication library to the patch version.