CVE-2024-49770 oak's path traversal allows transfer of hidden files within the served root directory
HighCVSS 7.7
EPSS 0.71%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| oakserver @oakserver/oak | < 17.1.3; = < 17.1.3 | 17.1.3 | Fixed |
| oakserver @oakserver/oak(npm) | <= 14.1.0 | after 14.1.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| oakserver @oakserver/oak(npm) | <= 14.1.0 | No fix listed |
| oakserver @oakserver/oak | = < 17.1.3 | No fix listed |
| oakserver @oakserver/oak | < 17.1.3 | 17.1.3 |
References
- https://github.com/oakserver/oak/security/advisories/GHSA-qm92-93fv-vh7m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/oakserver/oak/commit/4b2f27efd5cba5a45b2c3982e610da3af0869209 patch
- https://github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L117-L125
- github.com
- github.com product