Skip to main content

CakePHP Authentication EUVDEUVD-2026-65157

| CVE-2026-77337 CRITICAL
Authentication Bypass by Spoofing (CWE-290)
2026-08-24 GitHub_M
9.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app using CookieAuthenticator legacy tokens
  2. Delivery
    Forge two-part cookie with weak/oversized hash
  3. Exploit
    Submit forged cookie to app
  4. Execution
    Bypass password_verify authentication check
  5. Impact
    Impersonate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

authentication 4.0.0, < 4.2.1
authentication < 2.11.2
authentication 3.0.0, < 3.3.7

Affected Packages

euvd authentication fix: 2.11.2, 3.3.7, 4.2.1

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

Vendor (GitHub_M) PRIMARY 9.1 CRITICAL
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
vuln.today AI 9.4 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 24, 2026 - 22:02 EUVD
CVE Published
Aug 24, 2026 - 21:30 cve.org
CRITICAL 9.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
widely used PHP auth plugin, but only cookie remember-me deployments exposed
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2012-4399 HIGH POC
7.5 Oct 09

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

CVE-2016-4793 HIGH POC
7.5 Jan 23

The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP head

CVE-2015-8379 HIGH POC
8.8 Jan 26

CakePHP 2.x and 3.x before 3.1.5 might allow remote attackers to bypass the CSRF protection mechanism via the _method pa

CVE-2023-22727 CRITICAL
9.8 Jan 17

CakePHP is a development framework for PHP web apps. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2026-79752 CRITICAL
9.2 Sep 17

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

CVE-2026-77635 CRITICAL
9.2 Aug 24

SQL injection in CakePHP's database layer allows attackers to inject arbitrary SQL when an application uses FunctionsBui

CVE-2026-77634 HIGH
8.2 Aug 24

Email header injection in CakePHP's Mailer component allows CRLF sequences embedded in custom header values to split SMT

CVE-2019-11458 HIGH
7.5 May 08

An issue was discovered in SmtpTransport in CakePHP 3.7.6. Rated high severity (CVSS 7.5), this vulnerability is remotel

CVE-2026-48820 MEDIUM
6.3 Jun 17

Local file inclusion in CakePHP's View::_getElementFileName() allows remote attackers to include arbitrary PHP files fro

CVE-2026-23643 MEDIUM
5.4 Jan 16

CakePHP versions prior to 5.2.12 and 5.3.1 contain a stored cross-site scripting vulnerability in the PaginatorHelper::l

CVE-2020-15400 MEDIUM
4.3 Jun 30

CakePHP before 4.0.6 mishandles CSRF token generation. Rated medium severity (CVSS 4.3), this vulnerability is remotely

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy