CVE-2021-33026

The Flask-Caching extension through 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
References
Link Resource
https://github.com/pallets-eco/flask-caching/pull/209#issuecomment-1136397937 Issue Tracking Patch Third Party Advisory
https://github.com/sh4nks/flask-caching/pull/209 Patch Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:flask-caching_project:flask-caching:*:*:*:*:*:flask:*:*

History

07 Nov 2023, 03:35

Type Values Removed Values Added
Summary ** DISPUTED ** The Flask-Caching extension through 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. The Flask-Caching extension through 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

28 Oct 2022, 19:03

Type Values Removed Values Added
References (MISC) https://github.com/pallets-eco/flask-caching/pull/209#issuecomment-1136397937 - (MISC) https://github.com/pallets-eco/flask-caching/pull/209#issuecomment-1136397937 - Issue Tracking, Patch, Third Party Advisory

16 Sep 2022, 23:15

Type Values Removed Values Added
References
  • (MISC) https://github.com/pallets-eco/flask-caching/pull/209#issuecomment-1136397937 -
Summary The Flask-Caching extension through 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. ** DISPUTED ** The Flask-Caching extension through 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.

03 May 2022, 16:04

Type Values Removed Values Added
CWE CWE-269 CWE-502

24 May 2021, 14:35

Type Values Removed Values Added
References (MISC) https://github.com/sh4nks/flask-caching/pull/209 - (MISC) https://github.com/sh4nks/flask-caching/pull/209 - Patch, Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : 7.5
v3 : 9.8
CWE CWE-269
CPE cpe:2.3:a:flask-caching_project:flask-caching:*:*:*:*:*:flask:*:*

13 May 2021, 23:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-05-13 23:15

Updated : 2024-04-11 01:11


NVD link : CVE-2021-33026

Mitre link : CVE-2021-33026

CVE.ORG link : CVE-2021-33026


JSON object : View

Products Affected

flask-caching_project

  • flask-caching
CWE
CWE-502

Deserialization of Untrusted Data