Deserialization of Untrusted Data Affecting flask-caching package, versions [0,]


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
1.13% (86th percentile)

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 Learn

Learn about Deserialization of Untrusted Data vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-FLASKCACHING-1292339
  • published14 May 2021
  • disclosed14 May 2021
  • creditUnknown

Introduced: 14 May 2021

CVE-2021-33026  (opens in a new tab)
CWE-502  (opens in a new tab)

How 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:

  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

References

CVSS Scores

version 3.1