Advisory

GHSA-xqxc-x6p3-w683

Also known as: CVE-2025-48888

Summary

Deno run with --allow-read and --deny-read flags results in allowed

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-06-04 21:13 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

deno

crates.io · All systems

Affected

  • introduced 1.41.3, fixed 2.1.13 (semver)

Fixed versions

2.1.13

Fix

  • Fixed version 2.1.13
    cargo update -p deno --precise 2.1.13

deno

crates.io · All systems

Affected

  • introduced 2.2.0, fixed 2.2.13 (semver)

Fixed versions

2.2.13

Fix

  • Fixed version 2.2.13
    cargo update -p deno --precise 2.2.13

deno

crates.io · All systems

Affected

  • introduced 2.3.0, fixed 2.3.2 (semver)

Fixed versions

2.3.2

Fix

  • Fixed version 2.3.2
    cargo update -p deno --precise 2.3.2

deno_runtime

crates.io · All systems

Affected

  • introduced 0.150.0, fixed 0.212.0 (semver)

Fixed versions

0.212.0

Fix

  • Fixed version 0.212.0
    cargo update -p deno_runtime --precise 0.212.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences