# CVE-2021-32849: An authenticated user can execute arbitrary command in Gerapy

Source: https://junglewise.ai/threats/cve-2021-32849-an-authenticated-user-can-execute-arbitrary-command-in-gerapy  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-26  
License: CC BY 4.0 with a link back

CVE-2021-32849 · Severity: low · CVSS 3.1 · Published 2022-01-26

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.

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

## Quick answers

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

**How severe is CVE-2021-32849?** Low severity, with a CVSS score of 3.1, published 26 January 2022.

**Which products and versions are affected?** gerapy (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.9.

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

**Am I affected by CVE-2021-32849?** 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.9 or later

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


## Affected products

- gerapy (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.9

## Identifiers

- CVE-2021-32849
- GHSA-756h-r2c9-qp5j
- PYSEC-2022-17

## 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)
- [Gerapy may cause remote code execution](https://junglewise.ai/threats/cve-2021-43857-gerapy-may-cause-remote-code-execution)
- [Command injection in Gerapy](https://junglewise.ai/threats/cve-2020-7698-command-injection-in-gerapy)
