CVE-2026-93712 Details
Description
Dancer2 versions from 2.1.0 before 2.2.0 for Perl serve files from outside public_dir via relative path segments in the File route handler. The handler joins the request path onto public_dir without collapsing relative segments, and checks only that the result is a readable regular file. A request for `/../outside.txt` escapes public_dir, and percent-encoding the dots reaches the same file. The handler is off by default. An application is affected once it names File in route_handlers and sets static_handler to 0, which otherwise refuses a dot segment before the route runs. Any file the worker process can read is served to an unauthenticated request, including the application's config.yml above public_dir.
A path traversal vulnerability has been identified in Dancer2 versions 2.1.0 prior to 2.2.0. The issue arises in the File route handler, which improperly serves files from outside the designated public directory. This is achieved by exploiting relative path segments, allowing access to files above the public directory, including sensitive files like the application's config.yml. The vulnerability is present when the File handler is enabled and the default static handler is turned off, creating a risk of unauthorized file access through crafted requests.
Upgrade to Dancer2 version 2.2.0 or later, where this vulnerability has been fixed. If an immediate upgrade is not possible, re-enable the default static handler, which provides a built-in defense against path traversal by rejecting dot segments before the request is processed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 22, 2026CISA-ADP
Assessed Sep 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/PerlDancer/Dancer2/commit/2446a09ffb83fef71cc75c327bd6e4b1f007b885.patch | CPANSec | Source CodeVendor |
| https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-6xw8-v24c-m783 | CPANSec | AdvisoryRemedyVendor |
| https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes | CPANSec | Source CodeVendor |
| http://www.openwall.com/lists/oss-security/2026/09/22/4 | CVE | AdvisoryMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Dancer2 | >= 2.1.0, < 2.2.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 22, 2026 | CVE Modified | CISA-ADP |
| Sep 22, 2026 | CVE Modified | CVE |
| Sep 22, 2026 | New CVE Received | CPANSec |
Volerion