CVE-2025-48888: Deno run with --allow-read and --deny-read flags results in allowed

Published Jun 4, 2025
·
Updated

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.

Other sources

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.

— MITRE

Affected Software

8 affected componentsFixes available
Deno Deno>=1.41.3<2.1.13, <2.1.13, <2.2.13, <2.3.2
rust/deno_runtime>=0.150.0<0.212.0
0.212.0
rust/deno>=2.3.0<2.3.2
2.3.2
rust/deno>=2.2.0<2.2.13
2.2.13
rust/deno>=1.41.3<2.1.13
2.1.13
Deno Deno>=1.41.3<2.1.13
Deno Deno>=2.2.0<2.2.13
Deno Deno>=2.3.0<2.3.2

Event History

Jun 4, 2025
CVE Published
via MITRE·07:15 PM
Data Sourced
via MITRE·07:15 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:13 PM
Data Sourced
via GitHub·09:13 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-48888?

CVE-2025-48888 is classified as a medium severity vulnerability.

2

How do I fix CVE-2025-48888?

To fix CVE-2025-48888, upgrade Deno to version 2.1.13 or later.

3

What versions of Deno are affected by CVE-2025-48888?

CVE-2025-48888 affects Deno versions between 1.41.3 and 2.1.13, and also 2.2.13 and 2.3.2.

4

What is the nature of the vulnerability in CVE-2025-48888?

CVE-2025-48888 allows improper permission handling where 'deny' permissions are overridden by 'allow' permissions.

5

Is there a workaround for CVE-2025-48888 until I can upgrade Deno?

There is no official workaround for CVE-2025-48888, so upgrading is the best course of action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203