dalli is vulnerable to Deserialization of Untrusted Data
30
CVE Score
Low
Deserialization of Untrusted Data
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.
Upgrade the dalli library to the patch version.
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.
0.0.1 - 3.2.12
Fixed in 3.2.134.0.0 - 4.3.6
Fixed in 4.3.75.0.0 - 5.0.9
Fixed in 5.0.105.1.0 - 5.1.3
Fixed in 5.1.45.2.0 - 5.2.1
Fixed in 5.2.2dalli 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.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.