GHSA-p46m-g734-vpc4: Medium severity composer/cakephp/debug_kit vulnerability
Impact
The MailPreview feature of debugkit is vulnerable to arbitrary constructor execution. For an application to be vulnerable the following conditions must be true:
1. debug mode must be enabled. 2. The hostname must match a 'local' domain or be in an allowlist.
Patches 5.2.4 and 4.10.3 contain patches for this issue.
Workarounds Ensure that debugkit is only part of your development dependencies, and that debug mode is disabled in production environments.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/cakephp/debug_kitto a version that resolves this vulnerability.Fixed in 5.2.4 - Upgrade
Upgrade
composer/cakephp/debug_kitto a version that resolves this vulnerability.Fixed in 4.10.3 - Upgrade
Upgrade
debugkitto a version that resolves this vulnerability.Fixed in 5.2.4 - Upgrade
Upgrade
debugkitto a version that resolves this vulnerability.Fixed in 4.10.3 - Configuration
Ensure debugkit is only part of your development dependencies (i.e., not included in production).
debugkit MailPreview feature = development dependencies only - Configuration
Disable debug mode in production environments so `debug` is not enabled.
debugkit debug mode = disabled
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
An application is vulnerable only when debug mode is enabled and the request hostname matches a local domain or is included in an allowlist. Production deployments with debug mode disabled do not meet the stated conditions.
What level of access does an attacker need?
The supplied vector indicates network-reachable exploitation with low privileges required and no user interaction. The issue allows arbitrary constructor execution through the MailPreview feature when the vulnerable conditions are present.
Which releases contain a fix?
The issue is patched in debugkit versions 5.2.4 and 4.10.3.
What can be done before updating?
Keep debugkit limited to development dependencies and disable debug mode in production environments. This prevents the stated vulnerable deployment condition in production.