{"id":"CVE-2026-93710","published":"2026-09-22T01:16:55.730","lastModified":"2026-09-22T20:17:12.270","description":"Dancer2 versions from 2.0.0 before 2.2.0 for Perl dispatch a route that a dying hook refused when the exception handler halts the response in compile_hooks.\n\nA hook that dies fires core.app.hook_exception, then calls cleanup unless the failing hook is the exception handler. A handler that halts does not stop that cleanup, which discards the request, response and session the dispatcher has yet to read, so the refused route runs.\n\nThe handler has to halt the response object by calling its halt method or setting is_halted: the halt keyword unwinds through with_return before cleanup runs.\n\nA check in a before hook is not enforced: the caller gets the refusal, while the route body runs and its writes land.","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwes":["CWE-460"],"vendors":[],"products":[],"references":[{"url":"https://github.com/PerlDancer/Dancer2/commit/8fd31a32798f9aa25e4fccbd6c7cb9dd3a0c1029.patch","tags":[]},{"url":"https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-v527-r4px-7vx7","tags":[]},{"url":"https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2026/09/22/2","tags":[]}],"exploitRefs":[{"url":"https://github.com/PerlDancer/Dancer2/commit/8fd31a32798f9aa25e4fccbd6c7cb9dd3a0c1029.patch","tags":[]},{"url":"https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-v527-r4px-7vx7","tags":[]}],"hasPoc":true,"ai":{"summary":"Dancer2 framework has a race condition in its hook execution where dying hooks can cause routes to be incorrectly dispatched even after the response has been halted, leading to unexpected behavior and potential data loss. This occurs when exception handlers halt responses but don't prevent cleanup that discards request data, allowing stale routes to execute.","exploitability":"Exploitation requires crafting a hook that dies during route execution and then halts the response, with the specific timing of cleanup not being properly synchronized with the halt operation, making it moderately difficult to trigger reliably.","blast_radius":"The impact is moderate as it primarily affects applications using Dancer2 2.0.0 through 2.1.9 where a dying hook could cause unexpected route execution and data processing, potentially leading to inconsistent application state or data corruption.","remediation":"Upgrade to Dancer2 version 2.2.0 or later which contains the fix for the hook cleanup and exception handling race condition.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["web","perl","framework","vulnerability"],"model":"garnet-coder","analyzedAt":"2026-10-18T16:15:17.482Z"}}