Summary
CVE-2015-10149 is an improper input validation vulnerability in Dancer, a web framework for Perl. Versions before 1.3400 pass unvalidated session IDs from the session cookie to the session engine. The CVE record rates it Critical (CVSS 9.8).
Technical details
- Root cause:
read_session_idinDancer::Session::Abstractreturns the session cookie value as the session ID without validating it, and Dancer hands it to the session engine. - Trigger conditions: the application uses a session engine that places the session ID in a file path, cache command, or database query without checking it.
- Attack vector: network. A remote, unauthenticated attacker sets a crafted session cookie.
- Impact: path traversal or injection in the session engine, depending on how the engine uses the ID. The CVSS vector rates confidentiality, integrity, and availability impact as High.
Affected software
- Dancer (Perl, CPAN) versions 0 through 1.3399 (all versions before 1.3400)
Severity
- CVSS v3.1 base score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade Dancer to version 1.3400 or later, which validates session IDs. The fix is in commit 5a68fdd in the PerlDancer/Dancer repository.
- Identify applications built on Dancer 1.x that use session cookies and confirm which session engine they use.
- If you cannot upgrade immediately, the record lists no workaround. Review the session engine’s handling of session IDs and consider filtering unexpected characters in session cookie values at a reverse proxy or WAF.

