7.5
CVSSv2

CVE-2021-33026

Published: 13/05/2021 Updated: 11/04/2024
CVSS v2 Base Score: 7.5 | Impact Score: 6.4 | Exploitability Score: 10
CVSS v3 Base Score: 9.8 | Impact Score: 5.9 | Exploitability Score: 3.9
VMScore: 668
Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Summary

The Flask-Caching extension up to and including 1.10.1 for Flask relies on Pickle for serialization, which may lead to remote code execution or local privilege escalation. If an attacker gains access to cache storage (e.g., filesystem, Memcached, Redis, etc.), they can construct a crafted payload, poison the cache, and execute Python code. NOTE: a third party indicates that exploitation is extremely unlikely unless the machine is already compromised; in other cases, the attacker would be unable to write their payload to the cache and generate the required collision

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

flask-caching project flask-caching

Vendor Advisories

Debian Bug report logs - #988916 flask-caching: CVE-2021-33026 Package: src:flask-caching; Maintainer for src:flask-caching is Debian Python Team <team+python@trackerdebianorg>; Reported by: Salvatore Bonaccorso <carnil@debianorg> Date: Fri, 21 May 2021 12:03:01 UTC Severity: important Tags: security, upstream Fo ...
The Flask-Caching extension through 1101 for Flask relies on Pickle for serialization, which may lead to remote code execution or local privilege escalation If an attacker gains access to cache storage (eg, filesystem, Memcached, Redis, etc), they can construct a crafted payload, poison the cache, and execute Python code ...

Github Repositories

Pickle Serialization Remote Code Execution - Memcached Poisoning

CVE-2021-33026 Pickle Serialization Remote Code Execution - Memcached Poisoning PoC Exploit What's CVE-2021-3306? "The Flask-Caching extension through 1101 for Flask relies on Pickle for serialization, which may lead to remote code execution or local privilege escalation If an attacker gains access to cache storage (eg, filesystem, Memcached, Redis, etc), they