CVE-2021-33026
The Flask-Caching extension through 1.10.1 for Flask relies on Pickle ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium).
Description
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
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | flask-caching | no fix listed |
| debian 12 | flask-caching | no fix listed |
| debian 13 | flask-caching | no fix listed |
| debian 14 | flask-caching | no fix listed |
| echo | flask-caching | no fix listed |
| pip::GitHub Security Advisory pip | flask-caching | no fix listed |
| rapidfort debian 12 | flask-caching | no fix listed |
| rapidfort debian 13 | flask-caching | no fix listed |
References
- https://github.com/advisories/GHSA-656c-6cxf-hvcv
- https://github.com/pallets-eco/flask-caching/pull/209#issuecomment-1136397937
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-caching/PYSEC-2021-13.yaml
- https://github.com/sh4nks/flask-caching
- https://github.com/sh4nks/flask-caching/pull/209
- https://nvd.nist.gov/vuln/detail/CVE-2021-33026