Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app using CookieAuthenticator legacy tokens
-
DeliveryForge two-part cookie with weak/oversized hash
-
ExploitSubmit forged cookie to app
-
ExecutionBypass password_verify authentication check
-
ImpactImpersonate target user or exhaust CPU/memory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application uses the Authentication plugin's CookieAuthenticator ('remember me' cookie login) AND still accepts the legacy two-part token format ('legacyTokens' enabled, which is the default grace-period setting in unpatched code). The attacker must supply a cookie for a valid username but needs no password, session, or prior authentication (PR:N). Exploitation is LIMITED by: applications that do not use CookieAuthenticator at all are not affected; applications that have moved fully to the new HMAC token format or disabled legacy tokens are protected; and the CVSS AT:P flag reflects this required 'remember me' configuration as a precondition. No user interaction is required. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N, score 9.1) indicates network, low-complexity, unauthenticated attack with high confidentiality and integrity impact, but crucially AT:P - a present attack requirement, namely that the target must use CookieAuthenticator and still accept legacy tokens. This is a genuine high-severity issue where exploitable, since forging a token yields full identity impersonation, but the AT:P requirement and the config/deployment dependency meaningfully narrow real-world exposure versus a raw 9.1. No EPSS score was provided, it is not KEV-listed, and no POC was supplied - so this is a serious-but-not-confirmed-exploited flaw, and prioritization should hinge on whether an application actually enables CookieAuthenticator legacy tokens. The description also cites CPU/memory exhaustion (an availability impact) that the provided vector scores as VA:N, a minor inconsistency worth noting. |
| Exploit ScenarioDerived | An attacker who knows or guesses a valid username crafts a two-part legacy cookie containing a forged password hash in a weak crypt format that password_verify() accepts, and presents it to the application to be authenticated as that user without credentials. Alternatively they embed a bcrypt/argon2 hash with an extreme work factor to force password_verify() into heavy CPU or memory consumption, degrading the service. No public POC was provided, but the attack is network-reachable and low-complexity where legacy cookie tokens are accepted. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 24, 2026
Authentication bypass in the CakePHP Authentication plugin's CookieAuthenticator (versions before 2.11.2, 3.0.0-3.3.6, and 4.0.0-4.2.0) lets remote attackers forge unencrypted legacy 'remember me' cookie tokens to impersonate users, and to trigger CPU or memory exhaustion by embedding password hashes with an oversized work factor. Rated CVSS 4.0 9.1, with a vendor advisory (GHSA-h7xh-9h2x-2m37) and fixing PRs published; no public exploit identified at time of analysis and it is not on CISA KEV. Applications only exposed if they use CookieAuthenticator with the legacy token format (the default grace-period behavior).
RemediationAI
Vendor-released patch: upgrade to 2.11.2, 3.3.7, or 4.2.1 depending on your major version (fix delivered in PRs https://github.com/cakephp/authentication/pull/806 and https://github.com/cakephp/authentication/pull/807, commit c94d9a5380e7f4fdf38d338a9de2223a5b087159; details in advisory https://github.com/cakephp/authentication/security/advisories/GHSA-h7xh-9h2x-2m37). After upgrading, end the legacy grace period by setting the CookieAuthenticator 'legacyTokens' config option to false so only the new HMAC token format is accepted - the side effect is that any user still holding a pre-upgrade cookie is logged out and must re-authenticate. If you cannot upgrade immediately, disable the CookieAuthenticator ('remember me' cookie login) entirely to remove the forgeable-token path, at the cost of forcing interactive logins; alternatively keep the fixed defaults for legacyHashLimits (cost 15, memory_cost 131072, time_cost 10) to blunt the resource-exhaustion vector, though this alone does not stop the impersonation bypass.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is CakePHP's Authentication plugin, a framework-agnostic PSR-7 authentication library used by CakePHP and other PHP applications. The root cause is CWE-290 (Authentication Bypass by Spoofing): legacy two-part cookie tokens of the form [username, passwordHashedToken] were unencrypted and unsigned, so their integrity relied solely on password_verify() against a hash supplied inside the cookie itself. The patch (PR 806/807, commit c94d9a53) moves to a three-part HMAC-SHA256 token ([username, expires, hmac]) verified in constant time with hash_equals, and hardens the legacy path by rejecting non-password_hash() algorithms (e.g. crypt/DES formats, which truncate input to 8 bytes) via password_get_info() and by capping legacy hash work factors (cost 15, memory_cost 131072, time_cost 10) before verification.
Know when Cakephp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Unauthenticated network forging of a legacy cookie yields user impersonation (C:H/I:H); the described CPU/memory exhaustion warrants A:L; config dependence is a deployment precondition, not per-attack complexity, so AC:L.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
CakePHP Authentication is an authentication plugin for CakePHP that can also be used in PSR-7 based applications. Versions before 2.11.2, from 3.0.0 through 3.3.6, and from 4.0.0 through 4.2.0 allow authentication bypass and potential CPU or memory exhaustion when CookieAuthenticator uses unencrypted, forgeable legacy tokens. This issue is fixed in versions 2.11.2, 3.3.7, and 4.2.1.
Executive ViewAI
A critical vulnerability in the CakePHP Authentication plugin allows attackers to impersonate legitimate users and gain unauthorized access to application data. Organizations running affected CakePHP versions must immediately patch to prevent unauthorized account access and potential data compromise.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
The Xml class in CakePHP 2.1.x before 2.1.5 and 2.2.x before 2.2.1 allows remote attackers to read arbitrary files via X
The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP head
CakePHP 2.x and 3.x before 3.1.5 might allow remote attackers to bypass the CSRF protection mechanism via the _method pa
CakePHP is a development framework for PHP web apps. Rated critical severity (CVSS 9.8), this vulnerability is remotely
SQL injection in the CakePHP PHP framework (versions prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7) allows unauthenti
SQL injection in CakePHP's database layer allows attackers to inject arbitrary SQL when an application uses FunctionsBui
Email header injection in CakePHP's Mailer component allows CRLF sequences embedded in custom header values to split SMT
An issue was discovered in SmtpTransport in CakePHP 3.7.6. Rated high severity (CVSS 7.5), this vulnerability is remotel
Local file inclusion in CakePHP's View::_getElementFileName() allows remote attackers to include arbitrary PHP files fro
CakePHP versions prior to 5.2.12 and 5.3.1 contain a stored cross-site scripting vulnerability in the PaginatorHelper::l
CakePHP before 4.0.6 mishandles CSRF token generation. Rated medium severity (CVSS 4.3), this vulnerability is remotely
EUVD-2026-65157
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB