GHSA-xqxc-x6p3-w683

Suggest an improvement
Source
https://github.com/advisories/GHSA-xqxc-x6p3-w683
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-xqxc-x6p3-w683/GHSA-xqxc-x6p3-w683.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xqxc-x6p3-w683
Aliases
Related
Published
2025-06-04T21:13:44Z
Modified
2025-06-04T22:56:55Z
Severity
  • 5.5 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2025-06-04T20:15:23Z",
    "cwe_ids": [
        "CWE-863"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-06-04T21:13:44Z"
}
References

Affected packages

crates.io / deno

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.41.3
Fixed
2.1.13

crates.io / deno

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.2.0
Fixed
2.2.13

crates.io / deno

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.3.0
Fixed
2.3.2

crates.io / deno_runtime

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.150.0
Fixed
0.212.0