Use After Free Affecting deno_core package, versions >=0.202.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-DENOCORE-6419231
  • published8 Mar 2024
  • disclosed6 Mar 2024
  • creditleesh3288

Introduced: 6 Mar 2024

CVE-2024-27934  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

There is no fixed version for deno_core.

Overview

deno_core is a modern JavaScript/TypeScript runtime built with V8, Rust, and Tokio

Affected versions of this package are vulnerable to Use After Free due to the use of *const c_void and ExternalPointer to represent v8::External data, effectively bypassing Rust's lifetime safety guarantees. The ExternalPointer's reliance on the randomness of PIE address for security is insufficient, as it can be bypassed, especially in non-PIE binaries or when an attacker can derandomize the PIE address.

An attacker who can control the code executed inside the runtime can achieve arbitrary code execution on the host machine, regardless of permissions.

References

CVSS Scores

version 3.1