{"id":"CVE-2025-48888","aliases":["CVE-2025-48888","GHSA-xqxc-x6p3-w683"],"related":[],"kind":"vulnerability","state":"published","title":"Deno run with --allow-read and --deny-read flags results in allowed","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`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-*`.\n\n### Details\n\nCaused by the fast exit logic in #22894.\n\n### PoC\n\nRun the above command expecting no permissions to be passed.\n\n### Impact\n\nThis only affects a nonsensical combination of flags, so there shouldn't be a real impact on the userbase.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-06-04T19:15:55.041Z","modified":"2026-09-10T03:50:25.589Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":">= 1.41.3, < 2.1.13","status":"affected"},{"version":">= 2.2.0, < 2.2.13","status":"affected"},{"version":">= 2.3.0, < 2.3.2","status":"affected"}],"vendor":"denoland","product":"deno","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.41.3","status":"affected","fixed":"2.1.13"}],"ecosystem":"crates.io","package":"deno","purl":"pkg:cargo/deno","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.13"}],"ecosystem":"crates.io","package":"deno","purl":"pkg:cargo/deno","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"crates.io","package":"deno","purl":"pkg:cargo/deno","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.150.0","status":"affected","fixed":"0.212.0"}],"ecosystem":"crates.io","package":"deno_runtime","purl":"pkg:cargo/deno_runtime","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.41.3","fixed":"2.1.13"},{"status":"affected","introduced":"2.2.0","fixed":"2.2.13"},{"status":"affected","introduced":"2.3.0","fixed":"2.3.2"}],"vendor":"deno","product":"deno","cpe":"cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-xqxc-x6p3-w683","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/pull/22894","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/pull/29213","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/commit/2f0fae9d9071dcaf0a689bc7097584b1b9ebc8db","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/commit/9d665572d3cd39f997e29e6daac7c1102fc5c04f","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/commit/ef315b56c26c9ef5f25284a5100d2ed525a148cf","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48888","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/denoland/deno","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-06-04T19:32:34.846Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48888","url":"https://www.cve.org/CVERecord?id=CVE-2025-48888","licence":"CVE Terms of Use","modified":"2025-06-04T19:32:53.261Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xqxc-x6p3-w683","url":"https://github.com/advisories/GHSA-xqxc-x6p3-w683","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:25.589Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48888","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48888","licence":"Public domain","modified":"2026-06-17T09:30:26.283Z"}],"updatedAt":"2026-11-25T22:58:58.761Z","epss":{"score":0.00423,"percentile":0.38577,"date":"2026-12-01T12:00:22.000Z"}}