Path traversal in Dancer2
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Dancer2 | 2.1.0 to before 2.2.0 | 2.2.0 | Patch available | CNA |
- Dancer2 Vendor— Affected 2.1.0 to before 2.2.0 Fixed in 2.2.0 Patch available CNA
Remediation
- Fix · CNA Dancer2 Fixed in 2.2.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-93712
- 2026-10-03 Alias added: GHSA-fq22-f6q5-wv3x
References
Sources
- CVE-2026-93712 · CVE Program
- CVE-2026-93712 · NVD
- FIRST EPSS
- GHSA-fq22-f6q5-wv3x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences