CVE-2026-93712
published high CVSS 3.1 · 7.5Dancer2 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
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | Dancer22.1.0 to < 2.2.0 · Other versions: unaffected | Affected | Not stated | CPANSec |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Dancer2aarch64 | Advisory build | 2.2.2-1.1 | OPENSUSE-SU-2026:12202-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Dancer2ppc64le | Advisory build | 2.2.2-1.1 | OPENSUSE-SU-2026:12202-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Dancer2s390x | Advisory build | 2.2.2-1.1 | OPENSUSE-SU-2026:12202-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Dancer2x86_64 | Advisory build | 2.2.2-1.1 | OPENSUSE-SU-2026:12202-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Dancer2 | 2.1.0 to < 2.2.0 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
4Provider assertions
3CPANSec · cna
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
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 90bbd5af8cbfc7ea08c6361baa84a6da26c88300b0b770002fe194260df5f918
- Ingested
- 23 Sep 2026, 09:40:48 UTC
- Source record
- Official CVE record