{"answers":{"affected":"2 open source packages ship an affected version, including Flask-Caching and flask-caching. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-33026 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-33026 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-33026 is a critical unsafe deserialization vulnerability in n/a, published on 13 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-33026 and fix it if it is affected.\n\nWhat it is: CVE-2021-33026 is a critical unsafe deserialization vulnerability in n/a, published on 13 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-33026 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Flask-Caching (PyPI): affected all versions up to 1.10.1; no fix listed\n- flask-caching (PyPI): affected all versions up to 1.10.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-33026/ (Markdown: https://insights.sbomify.com/CVE-2021-33026/index.md)","id":"CVE-2021-33026","markdown":"https://insights.sbomify.com/CVE-2021-33026/index.md","name":"CVE-2021-33026","record":{"aliases":["DEBIAN-CVE-2021-33026","GHSA-656c-6cxf-hvcv"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Flask caching extension","requires_auth":"none","summary":"Attackers with cache storage access can execute arbitrary code via unsafe Pickle deserialization in the Flask-Caching extension.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"flask-caching","vendor":"flask-caching_project"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"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","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2021-11-05","github_poc":2,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-11-05T18:11:54Z","kind":"github_poc","ref":"https://github.com/CarlosG13/CVE-2021-33026","stars":4,"title":"Pickle Serialization Remote Code Execution - Memcached Poisoning"},{"date":"2024-10-08T17:27:56Z","kind":"github_poc","ref":"https://github.com/Agilevatester/FlaskCache_CVE-2021-33026_POC","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":false,"headline":"Deserialization of Untrusted Data in Flask-Caching","id":"CVE-2021-33026","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Weak cryptography in n/a","id":"CVE-2021-33027"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["1.10.1"],"package":"Flask-Caching","purl":null,"source":"GHSA-656c-6cxf-hvcv"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["1.10.1"],"package":"flask-caching","purl":"pkg:pypi/flask-caching","source":"GHSA-656c-6cxf-hvcv"}],"prev":{"headline":"xArrow SCADA Path Traversal","id":"CVE-2021-33025"},"products":["n/a"],"published":"2021-05-13","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers with cache storage access can execute arbitrary code via unsafe Pickle deserialization in the Flask-Caching extension.","url":"https://insights.sbomify.com/CVE-2021-33026/"}