5.5medium
Deno run with --allow-read and --deny-read flags results in allowed
- Severity
- 5.5medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xqxc-x6p3-w683
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.41.3 and prior to versions 2.1.13, 2.2.13, and 2.3.2, `deno run --allow-read --deny-read main.ts` results in allowed, even though 'deny' should be stronger. The result is the same with all global unary permissions given as `--allow-* --deny-*`. This only affects a nonsensical combination of flags, so there shouldn't be a real impact on the userbase. Users may upgrade to version 2.1.13, 2.2.13, or 2.3.2 to receive a patch.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| denoland deno | >= 1.41.3, < 2.1.13, >= 2.2.0, < 2.2.13, >= 2.3.0, < 2.3.2 | CVE List |
| deno (crates.io) | from 1.41.3 before 2.1.13, from 2.2.0 before 2.2.13, from 2.3.0 before 2.3.2 | GitHub Advisory Database |
| deno_runtime (crates.io) | from 0.150.0 before 0.212.0 | GitHub Advisory Database |
| deno deno | from 1.41.3 before 2.1.13, from 2.2.0 before 2.2.13, from 2.3.0 before 2.3.2 | NVD |
All scores
| GitHub_M | 5.5medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.41.3 and prior to versions 2.1.13, 2.2.13, and 2.3.2, `deno run --allow-read --deny-read main.ts` results in allowed, even though 'deny' should be stronger. The result is the same with all global unary permissions given as `--allow-* --deny-*`. This only affects a nonsensical combination of flags, so there shouldn't be a real impact on the userbase. Users may upgrade to version 2.1.13, 2.2.13, or 2.3.2 to receive a patch.
GitHub Advisory Database
Summary
deno run --allow-read --deny-read main.ts results in allowed, even though 'deny' should be stronger. Same with all global unary permissions given as --allow-* --deny-*.
Details
Caused by the fast exit logic in #22894.
PoC
Run the above command expecting no permissions to be passed.
Impact
This only affects a nonsensical combination of flags, so there shouldn't be a real impact on the userbase.
NVD (es)
Deno es un entorno de ejecución de JavaScript, TypeScript y WebAssembly. A partir de la versión 1.41.3 y anteriores a las versiones 2.1.13, 2.2.13 y 2.3.2, `deno run --allow-read --deny-read main.ts` da como resultado "permitido", aunque `deny' debería ser más seguro. El resultado es el mismo con todos los permisos unarios globales asignados como `--allow-* --deny-*`. Esto solo afecta a una combinación de indicadores sin sentido, por lo que no debería tener un impacto real en la base de usuarios. Los usuarios pueden actualizar a las versiones 2.1.13, 2.2.13 o 2.3.2 para recibir un parche.
References
| https://github.com/denoland/deno/security/advisories/GHSA-xqxc-x6p3-w683 | exploit, vendor-advisory, web | |
| https://github.com/denoland/deno/pull/22894 | issue-tracking, patch, web | |
| https://github.com/denoland/deno/pull/29213 | issue-tracking, patch, web | |
| https://github.com/denoland/deno/commit/2f0fae9d9071dcaf0a689bc7097584b1b9ebc8db | patch, web | |
| https://github.com/denoland/deno/commit/9d665572d3cd39f997e29e6daac7c1102fc5c04f | patch, web | |
| https://github.com/denoland/deno/commit/ef315b56c26c9ef5f25284a5100d2ed525a148cf | patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-48888 | advisory | |
| https://github.com/denoland/deno | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-48888 changed 2025-06-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xqxc-x6p3-w683 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-48888 changed 2026-06-17 | Public domain |