{"id":"CVE-2025-48888","published":"2025-06-04T19:15:55Z","modified":"2025-06-04T19:32:53Z","title":"Deno run with --allow-read and --deny-read flags results in allowed","vendor":"denoland","product":"deno","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00743,"percentile":0.50798,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-xqxc-x6p3-w683","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/pull/22894","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/pull/29213","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/2f0fae9d9071dcaf0a689bc7097584b1b9ebc8db","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/9d665572d3cd39f997e29e6daac7c1102fc5c04f","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/ef315b56c26c9ef5f25284a5100d2ed525a148cf","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":10.16},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 1.41.3, < 2.1.13",">= 2.2.0, < 2.2.13",">= 2.3.0, < 2.3.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-06-04T19:32:34.846347Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":[">=1.41.3, <2.1.13",">=2.2.0, <2.2.13",">=2.3.0, <2.3.2"],"patched":["2.1.13","2.2.13","2.3.2"],"from":["GHSA-xqxc-x6p3-w683"],"provenance":"source"},{"ecosystem":"crates.io","package":"deno_runtime","vulnerableRanges":[">=0.150.0, <0.212.0"],"patched":["0.212.0"],"from":["GHSA-xqxc-x6p3-w683"],"provenance":"source"}],"summary":{"text":"The Deno runtime (denoland/deno) contains a flaw in its permission handling, where running with a combination of --allow-* and --deny-* flags for the same global permission, such as --allow-read --deny-read, results in the permission being allowed instead of denied. An attacker with network access and no authentication or user interaction could exploit this in affected Deno releases, but only in the uncommon configuration where both allow and deny flags are passed together.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:20Z"},"euvd":{"id":"EUVD-2025-16912","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-denoland-deno-cve-2025-48888","children":[{"from":"CVE-2025-48888","to":"CVE-2025-48934","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["runtime/permissions/lib.rs"],"commits":["https://github.com/denoland/deno/commit/2f0fae9d9071dcaf0a689bc7097584b1b9ebc8db","https://github.com/denoland/deno/commit/9d665572d3cd39f997e29e6daac7c1102fc5c04f","https://github.com/denoland/deno/commit/2959e083912420988066a001c2b2d6732a1b562f","https://github.com/denoland/deno/commit/946ccda1aa19a00c478a5e6826b75053b050d753"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-24015","published":"2025-06-03","fixed":"2.1.7","kev":false,"link":{"from":"CVE-2025-24015","to":"CVE-2025-48888","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.1.7","toFixed":"2.1.13","daysApart":1}]}},{"cve":"CVE-2025-48935","published":"2025-06-04","fixed":"2.2.5","kev":false,"link":{"from":"CVE-2025-48935","to":"CVE-2025-48888","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.2.5","toFixed":"2.2.13","daysApart":0}]}},{"cve":"CVE-2025-48934","published":"2025-06-04","fixed":"2.2.13","kev":false},{"cve":"CVE-2025-48888","published":"2025-06-04","fixed":"2.3.2","kev":false},{"cve":"CVE-2025-61787","published":"2025-10-08","fixed":"2.5.2","kev":false,"link":{"from":"CVE-2025-48888","to":"CVE-2025-61787","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.3.2","toFixed":"2.5.2","daysApart":126}]}},{"cve":"CVE-2025-61785","published":"2025-10-08","fixed":"2.5.3","kev":false},{"cve":"CVE-2025-61786","published":"2025-10-08","fixed":"2.5.3","kev":false}],"package":"crates.io:deno"}}