flask-caching@1.3.1 vulnerabilities

Adds caching support to Flask applications.

Direct Vulnerabilities

Known vulnerabilities in the flask-caching package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
Deserialization of Untrusted Data

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:

  1. Can write arbitrary values to the cache

  2. Can generate a cache key that will collide with a value being read by the application

  3. Can cause the application to read a maliciously-injected value

How to fix Deserialization of Untrusted Data?

There is no fixed version for Flask-Caching.

[0,)