Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-25893: Security fix for issue 444. by XmiliaH · Pull Request #445 · patriksimek/vm2

The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the WeakMap.prototype.set method. Exploiting this vulnerability leads to access to a host object and a sandbox compromise.

CVE
#vulnerability

@@ -51,7 +51,10 @@ const { AsyncGeneratorFunction } = data;
const localWeakMapGet = LocalWeakMap.prototype.get; const { get: localWeakMapGet, set: localWeakMapSet } = LocalWeakMap.prototype;
function localUnexpected() { return new VMError(‘Should not happen’); @@ -282,8 +285,8 @@ if (typeof OriginalCallSite === ‘function’) { } return value(error, sst); }; wrappedPrepareStackTrace.set(value, newWrapped); wrappedPrepareStackTrace.set(newWrapped, newWrapped); localReflectApply(localWeakMapSet, wrappedPrepareStackTrace, [value, newWrapped]); localReflectApply(localWeakMapSet, wrappedPrepareStackTrace, [newWrapped, newWrapped]); currentPrepareStackTrace = newWrapped; } })) throw localUnexpected();

Related news

GHSA-4w2j-2rg4-5mjw: vm2 vulnerable to Arbitrary Code Execution

The package vm2 before 3.9.10 is vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the WeakMap.prototype.set method. Exploiting this vulnerability leads to access to a host object and a sandbox compromise.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907