Skip to main content

CVE-2026-93712: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

0
High
VulnerabilityCVE-2026-93712cvecve-2026-93712cwe-22
Published: 09/22/2026 (09/22/2026, 00:52:36 UTC)
Source: CVE Database V5

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.

Affected software

GitHub Actionsmore threats →cve
Dancer2
pkg:github/Dancer2
Affected versions
>=2.1.0 <2.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/22/2026, 01:16:40 UTC

Technical Analysis

Dancer2 versions >=2.1.0 and <2.2.0 for Perl have a CWE-22 path traversal vulnerability in the File route handler. The handler concatenates the request path with the public_dir directory without collapsing relative path segments, allowing escape from the restricted directory via paths like '/../outside.txt' or percent-encoded equivalents. This occurs only if the application configures the File route handler and disables the static_handler check that normally rejects dot segments. Consequently, any file readable by the worker process can be served to unauthenticated requests, including sensitive configuration files located above public_dir.

Potential Impact

An attacker can retrieve arbitrary files readable by the application process outside the intended public directory without authentication. This can lead to disclosure of sensitive information such as configuration files, potentially exposing credentials or other secrets.

Mitigation Recommendations

No official patch or fix is indicated in the provided data. Users should avoid configuring the File route handler with static_handler set to 0 to prevent exposure. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-09-18T15:07:22.163Z
State
PUBLISHED

Threat ID: 6ab1d39c55bf5e2cf5ca3a34

Added to database: 09/22/2026, 01:02:20 UTC

Last enriched: 09/22/2026, 01:16:40 UTC

Last updated: 09/22/2026, 01:59:03 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses