CVE-2022-24783: Deno Sandbox Bypass Leading To Arbitrary Vulnerability
CRITICALCVE-2022-24783 is a CRITICAL (CVSS 10.0) sandbox bypass leading to arbitrary vulnerability (CWE-269: Improper Privilege Management) affecting Deno libraries in the crates.io ecosystem. The issue involves sandbox bypass leading to arbitrary code execution in deno. Remediation is available by upgrading affected packages to version 1.20.3.
CVE-2022-24783 at a Glance
Security Impact
CVSS: 10.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2022-24783
To remediate this vulnerability, upgrade all affected Deno dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade deno to 1.20.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for deno
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-24783, inspect your project dependencies for Deno:
inspect dependencies for deno
Analyze the terminal output to locate any version of Deno in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.20.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Deno, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-24783 Affected Deno Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
deno
|
crates.io |
≥ 1.18.0
< 1.20.3
|
1.20.3
|
References
Frequently Asked Questions
What is CVE-2022-24783?
Which Deno versions are affected?
What version fixes CVE-2022-24783?
Is deno affected?
What is the CVSS score of CVE-2022-24783?
What CWE is associated with CVE-2022-24783?
How can I check crates.io dependencies for CVE-2022-24783?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-838h-jqp6-cf2f",
"modified" : "2022-05-02T19:39:05Z",
"published" : "2022-03-29T22:10:10Z",
"aliases" : [ "CVE-2022-24783" ],
"summary" : "Sandbox bypass leading to arbitrary code execution in Deno",
"details" : "### Impact\n\nThe versions of Deno between release 1.18.0 and 1.20.2 (inclusive) are vulnerable to an attack where a malicious actor controlling the code executed in a Deno runtime could bypass permission checks and execute arbitrary shell code.\n\nThere is **no** evidence that this vulnerability has been exploited in the wild.\n\nThis vulnerability does **not** affect users of Deno Deploy.\n\n### Patches\n\nThe vulnerability has been patched in Deno 1.20.3.\n\n### Workarounds\n\nThere is no workaround. All users are recommended to upgrade to 1.20.3 immediately\n\n---\n\nThe cause of this error was that certain FFI operations did not correctly check for permissions. The issue was fixed in [this](https://github.com/denoland/deno/pull/14115) pull request.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "deno"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.18.0"
}, {
"fixed" : "1.20.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/security/advisories/GHSA-838h-jqp6-cf2f"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24783"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/pull/14115"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/commit/fcfce1bb869fddc629e6d889d6ba1328b80b0dcf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/denoland/deno"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/compare/v1.20.2...v1.20.3"
}, {
"type" : "WEB",
"url" : "https://github.com/denoland/deno/releases/tag/v1.20.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269", "CWE-863" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-03-29T22:10:10Z",
"nvd_published_at" : "2022-03-25T22:15:00Z"
}
}