CVE-2024-49770

oak's path traversal allows transfer of hidden files within the served root directory

Published Nov 1, 2024 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
Description
`oak` is a middleware framework for Deno's native HTTP server, Deno Deploy, Node.js 16.5 and later, Cloudflare Workers and Bun. By default `oak` does not allow transferring of hidden files with `Context.send` API. However, prior to version 17.1.3, this can be bypassed by encoding `/` as its URL encoded form `%2F`. For an attacker this has potential to read sensitive user data or to gain access to server secrets. Version 17.1.3 fixes the issue.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-3301 `oak` is a middleware framework for Deno's native HTTP server, Deno Deploy, Node.js 16.5 and later, Cloudflare Workers and Bun. By default `oak` does not allow transferring of hidden files with `Context.send` API. However, prior to version 17.1.3, this can be bypassed by encoding `/` as its URL encoded form `%2F`. For an attacker this has potential to read sensitive user data or to gain access to server secrets. Version 17.1.3 fixes the issue.
Github GHSA Github GHSA GHSA-qm92-93fv-vh7m Path traversal in oak allows transfer of hidden files within the served root directory
History
Type Values Removed Values Added
First Time appeared Oakserver
Oakserver oak
CPEs cpe:2.3:a:oakserver:oak:*:*:*:*:*:*:*:*
Vendors & Products Oakserver
Oakserver oak
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description `oak` is a middleware framework for Deno's native HTTP server, Deno Deploy, Node.js 16.5 and later, Cloudflare Workers and Bun. By default `oak` does not allow transferring of hidden files with `Context.send` API. However, prior to version 17.1.3, this can be bypassed by encoding `/` as its URL encoded form `%2F`. For an attacker this has potential to read sensitive user data or to gain access to server secrets. Version 17.1.3 fixes the issue.
Title oak's path traversal allows transfer of hidden files within the served root directory
Weaknesses CWE-22
CWE-35
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 1, 2024, 5:35 PM
Reserved
Oct 18, 2024, 1:43 PM
Status
Deferred
Published
Nov 1, 2024, 5:15 PM
Modified
Jun 17, 2026, 8:00 AM