Skip to main content
← All vulnerabilities
CVE-2021-33026GHSA-656C-6CXF-HVCV

The Flask-Caching extension through 1.10.1 for Flask relies on Pickle for serialization, which may lead to remote code execution or local pr

Published
Last modified
published
Not listed in CISA KEV
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

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. 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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • flask-cachingPyPI

    through 1.10.1

References 4

GitHub · sh4nks/flask-caching

GitHub · pallets-eco/flask-caching

GitHub · Agilevatester/FlaskCache_CVE-2021-33026_POC

GitHub · CarlosG13/CVE-2021-33026