# CVE-2021-43857: Gerapy may cause remote code execution

Source: https://junglewise.ai/threats/cve-2021-43857-gerapy-may-cause-remote-code-execution  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-12-27  
License: CC BY 4.0 with a link back

CVE-2021-43857 · Severity: low · CVSS 3.1 · Published 2021-12-27

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.

Technologies: [gerapy (PyPI)](https://junglewise.ai/threats/technologies/pypi-gerapy). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-43857 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-43857 being exploited in the wild.

**How severe is CVE-2021-43857?** Low severity, with a CVSS score of 3.1, published 27 December 2021.

**Which products and versions are affected?** gerapy (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.8, GIT:introduced=0,fixed=49bcb19be5e0320e7e1535f34fe00f16a3cf3b28|ECOSYSTEM:introduced=0,fixed=0.9.8.

**Is there a fix for CVE-2021-43857?** Yes. gerapy (PyPI): upgrade to 0.9.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-43857?** Check whether you run gerapy (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- gerapy (PyPI): upgrade to 0.9.8 or later

  ```sh
  pip install "gerapy>=0.9.8"
  ```


## Affected products

- gerapy (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.8, GIT:introduced=0,fixed=49bcb19be5e0320e7e1535f34fe00f16a3cf3b28|ECOSYSTEM:introduced=0,fixed=0.9.8

## Identifiers

- CVE-2021-43857
- GHSA-9w7f-m4j4-j3xw
- PYSEC-2021-867

## Related threats

- [PYSEC-2022-228 - An Access Control vunerabiity exists in Gerapy v 0.9.7 via the spider parameter in project_configure function.](https://junglewise.ai/threats/cve-2021-44597-gerapy-authorization-bypass-in-project-configure)
- [An authenticated user can execute arbitrary command in Gerapy](https://junglewise.ai/threats/cve-2021-32849-an-authenticated-user-can-execute-arbitrary-command-in-gerapy)
- [Command injection in Gerapy](https://junglewise.ai/threats/cve-2020-7698-command-injection-in-gerapy)
