dalli is vulnerable to Deserialization of Untrusted Data
30
Low Risk
Several read methods skip a per request raw: true option and still run the configured serializer's load, Marshal by default, on any value whose stored flags mark it serialized. serializer: JSON calls JSON.load, which can instantiate classes named in json_class when they define json_create. Write access to the memcached instance is enough to use either path, leading to unsafe deserialization, even when the call sets raw: true or serializer: JSON. The fix applies raw: true on every read that accepts options and adds a Dalli::JSONSerializer that only returns plain JSON types.
You are affected if you are using a version that falls within the vulnerable range and you rely on per request raw: true reads or the serializer: JSON option with a json gem older than 3.0.
dalli is vulnerable to Deserialization of Untrusted Data in versions 0.0.1 - 3.2.12, 4.0.0 - 4.3.6, 5.0.0 - 5.0.9, 5.1.0 - 5.1.3 and 5.2.0 - 5.2.1.
Upgrade the dalli library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.