{"id":"CVE-2026-93712","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","details":"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.\n\nThe 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.\n\nThe 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.\n\nAny file the worker process can read is served to an unauthenticated request, including the application's config.yml above public_dir.","aliases":["GHSA-6xw8-v24c-m783"],"modified":"2026-09-22T11:45:42.880866704Z","published":"2026-09-22T00:52:36.047Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93712.json","cna_assigner":"CPANSec","cwe_ids":["CWE-22"]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/09/22/4"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93712.json"},{"type":"PACKAGE","url":"https://github.com/PerlDancer/Dancer2"},{"type":"FIX","url":"https://github.com/PerlDancer/Dancer2/commit/2446a09ffb83fef71cc75c327bd6e4b1f007b885.patch"},{"type":"ADVISORY","url":"https://github.com/PerlDancer/Dancer2/security/advisories/GHSA-6xw8-v24c-m783"},{"type":"ADVISORY","url":"https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93712"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/perldancer/dancer2","events":[{"introduced":"09e9376288ddc3571f226883eb99753fecce818d"},{"fixed":"9931faa20d48fbd017c500a88f9236a1276c0ea9"}],"database_specific":{"extracted_events":[{"introduced":"2.1.0"},{"fixed":"2.2.0"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93712.json"}}],"schema_version":"1.9.0"}