{"id":"CVE-2024-49770","published":"2024-11-01T16:16:29Z","modified":"2024-11-01T17:35:10Z","title":"oak's path traversal allows transfer of hidden files within the served root directory","vendor":"oakserver","product":"oak","tier":"tail","description":{"text":"`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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00711,"percentile":0.54462,"provenance":"source"},"cwes":[{"id":"CWE-35","name":"Path Traversal: '.../...//'"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/oakserver/oak/security/advisories/GHSA-qm92-93fv-vh7m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oakserver/oak/commit/4b2f27efd5cba5a45b2c3982e610da3af0869209","tags":["x_refsource_MISC"]},{"url":"https://github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L117-L125","tags":["x_refsource_MISC"]},{"url":"https://github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L182C10-L182C25","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":10.89},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"oakserver","affectedVersions":[{"vendor":"oakserver","product":"oak","versions":["< 17.1.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-11-01T17:32:52.541978Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@oakserver/oak","vulnerableRanges":["<=14.1.0"],"patched":[],"from":["GHSA-qm92-93fv-vh7m"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-3301","exploited":false,"provenance":"source"}}