{"answers":{"affected":"3 open source packages ship an affected version, including gerapy. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32849 exists.","fix":"Upgrade gerapy to 0.9.9 or later.","what":"CVE-2021-32849 is a high-severity command injection vulnerability in gerapy, published on 26 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-32849 and fix it if it is affected.\n\nWhat it is: CVE-2021-32849 is a high-severity command injection vulnerability in gerapy, published on 26 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32849 exists.\n\nAffected packages and fixed versions:\n- gerapy (PyPI): affected all versions; fixed in 0.9.9\n- gerapy (PyPI): affected all versions; fixed in 0.9.9\n- gerapy (PyPI): affected all versions; fixed in 0.9.9\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-32849/ (Markdown: https://insights.sbomify.com/CVE-2021-32849/index.md)","id":"CVE-2021-32849","markdown":"https://insights.sbomify.com/CVE-2021-32849/index.md","name":"CVE-2021-32849","record":{"aliases":["GHSA-756h-r2c9-qp5j","PYSEC-2022-17"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Gerapy crawler framework","requires_auth":"low_privilege","summary":"An authenticated user can execute arbitrary commands in the Gerapy distributed crawler management framework.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gerapy","vendor":"gerapy"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Gerapy is a distributed crawler management framework. Prior to version 0.9.9, an authenticated user could execute arbitrary commands. This issue is fixed in version 0.9.9. There are no known workarounds.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2022-04-25","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-04-25T06:44:46Z","kind":"github_poc","ref":"https://github.com/lowkey0808/cve-2021-32849","stars":2,"title":"cve-2021-32849(gerapy命令执行)"}],"tier":"weaponised"},"has_fix":true,"headline":"Arbitrary command execution in Gerapy","id":"CVE-2021-32849","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":3,"n_references":5,"next":{"headline":"jQuery MiniColors vulnerable to Cross-site Scripting","id":"CVE-2021-32850"},"packages":[{"ecosystem":"PyPI","fixed":["0.9.9"],"introduced":["0"],"last_affected":[],"package":"gerapy","purl":null,"source":"GHSA-756h-r2c9-qp5j"},{"ecosystem":"PyPI","fixed":["0.9.9"],"introduced":["0"],"last_affected":[],"package":"gerapy","purl":"pkg:pypi/gerapy","source":"GHSA-756h-r2c9-qp5j"},{"ecosystem":"PyPI","fixed":["0.9.9"],"introduced":["0"],"last_affected":[],"package":"gerapy","purl":"pkg:pypi/gerapy","source":"PYSEC-2022-17"}],"prev":{"headline":"Octobox ReDoS vulnerability","id":"CVE-2021-32848"},"products":["gerapy"],"published":"2022-01-26","related":[{"cvss_score":9.8,"headline":"Gerapy may contain remote code execution vulnerability","id":"CVE-2021-43857","kev_date_added":null,"published":"2021-12-27"},{"cvss_score":8.1,"headline":"Command Injection","id":"CVE-2020-7698","kev_date_added":null,"published":"2020-07-29"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["Gerapy"]},"summary":"An authenticated user can execute arbitrary commands in the Gerapy distributed crawler management framework.","url":"https://insights.sbomify.com/CVE-2021-32849/"}