Deserialization of Untrusted Data Affecting flask-caching package, versions [0,]
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-FLASKCACHING-1292339
- published 14 May 2021
- disclosed 14 May 2021
- credit Unknown
Introduced: 14 May 2021
CVE-2021-33026 Open this link in a new tabHow to fix?
There is no fixed version for Flask-Caching
.
Overview
Flask-Caching is an Adds caching support to your Flask application
Affected versions of this package are vulnerable to Deserialization of Untrusted Data. The Flask-Caching extension 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
Exploiting this vulnerability is possible if the attacker:
Can write arbitrary values to the cache
Can generate a cache key that will collide with a value being read by the application
Can cause the application to read a maliciously-injected value