GHSA-p46m-g734-vpc4medium4.3
cakephp/debug_kit: MailPreview contains unsafe reflection
Impact
The MailPreview feature of debugkit is vulnerable to arbitrary constructor execution. For an application to be vulnerable the following conditions must be true:
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
cakephp/debug_kit Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 4.10.3Ecosystem versions | 4.10.3 |
| From 5.0.0 before 5.2.4Ecosystem versions | 5.2.4 |
Version evidence: OSV · GHSA-p46m-g734-vpc4
View original version evidence (164 explicit versions)
Original source description
Impact
The MailPreview feature of debugkit is vulnerable to arbitrary constructor execution. For an application to be vulnerable the following conditions must be true:
debugmode must be enabled.- 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.
References
- Security advisory github.com/cakephp/debug_kit/security/advisories/GHSA-p46m-g734-vpc4
- Patch github.com/cakephp/debug_kit/pull/1078
- Patch github.com/cakephp/debug_kit/commit/7c4d85e984c2334b0f50cd02578a927ff9649e13
- Patch github.com/cakephp/debug_kit/commit/c8a2a9e07d56a5e212d95f6947f370f3b5e6eed6
- Source reference github.com/cakephp/debug_kit
- Release notes github.com/cakephp/debug_kit/releases/tag/4.10.3
- Release notes github.com/cakephp/debug_kit/releases/tag/5.2.4