{"id":"CVE-2026-54614","published":"2026-08-26T15:30:23Z","modified":"2026-08-29T02:40:09Z","title":"DebugKit: MailPreview contains unsafe reflection","vendor":"cakephp","product":"debug_kit","tier":"tail","description":{"text":"DebugKit provides a debugging toolbar for CakePHP applications. Prior to 4.10.3 and 5.2.4, the DebugKit MailPreview feature in src/Controller/MailPreviewController.php accepts a route-controlled previewName value in findPreview and passes the resolved class from App::className() to constructor execution without rejecting namespace separators or verifying that the class extends DebugKit\\Mailer\\MailPreview. An attacker able to access DebugKit while debug mode is enabled and the request hostname is local or allowlisted can select an unintended application class through the mail-preview preview route, resulting in arbitrary constructor execution and limited disclosure of application information. This issue is fixed in versions 4.10.3 and 5.2.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00536,"percentile":0.38659,"provenance":"source"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/cakephp/debug_kit/security/advisories/GHSA-p46m-g734-vpc4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cakephp/debug_kit/pull/1078","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/debug_kit/commit/7c4d85e984c2334b0f50cd02578a927ff9649e13","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/debug_kit/commit/c8a2a9e07d56a5e212d95f6947f370f3b5e6eed6","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/debug_kit/releases/tag/4.10.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/debug_kit/releases/tag/5.2.4","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":7.73},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"cakephp","affectedVersions":[{"vendor":"cakephp","product":"debug_kit","versions":["< 4.10.3",">= 5.0.0, < 5.2.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-29T02:39:54.252351Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"cakephp/debug_kit","vulnerableRanges":["<4.10.3",">=5.0.0, <5.2.4"],"patched":["4.10.3","5.2.4"],"from":["GHSA-p46m-g734-vpc4"],"provenance":"source"}],"summary":{"text":"DebugKit's MailPreview feature in src/Controller/MailPreviewController.php resolves a route-supplied previewName value into a class and executes its constructor without restricting namespaces or confirming the class extends DebugKit's MailPreview base class, in the cakephp debug_kit product. An attacker with low-privilege access to DebugKit, where debug mode is enabled and the request hostname is local or allowlisted, can use the mail-preview route to select an unintended application class, running its constructor and gaining limited disclosure of application information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:21Z"},"euvd":{"id":"EUVD-2026-66597","exploited":false,"provenance":"source"}}