---
id: CVE-2021-43857
aliases:
  - GHSA-9w7f-m4j4-j3xw
  - PYSEC-2021-867
title: Gerapy may cause remote code execution
summary: Gerapy may cause remote code execution
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: gerapy
product: gerapy
ecosystem: pip
affected:
  - gerapy < 0.9.8
patched:
  - gerapy 0.9.8
published: '2022-01-06'
updated: '2026-07-08'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-9w7f-m4j4-j3xw'
references:
  - url: 'https://github.com/Gerapy/Gerapy/security/advisories/GHSA-9w7f-m4j4-j3xw'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2021-43857'
  - url: 'https://github.com/Gerapy/Gerapy/issues/219'
  - url: >-
      https://github.com/Gerapy/Gerapy/commit/49bcb19be5e0320e7e1535f34fe00f16a3cf3b28
  - url: 'https://github.com/Gerapy/Gerapy'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/gerapy/PYSEC-2021-867.yaml
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/gerapy/PYSEC-2022-228.yaml
  - url: >-
      http://packetstormsecurity.com/files/165459/Gerapy-0.9.7-Remote-Code-Execution.html
tags:
  - osv
  - pip
  - exploit-available
epss: 0.55331
epssPercentile: 0.99
exploitAvailable: true
ingestedAt: '2026-07-08T18:25:48.104Z'
exploits:
  exploitdb: true
  github: 5
  githubRepos:
    - 'https://github.com/LongWayHomie/CVE-2021-43857'
    - 'https://github.com/lowkey0808/CVE-2021-43857'
    - 'https://github.com/G4sp4rCS/CVE-2021-43857-POC'
  checkedAt: '2026-09-25T08:20:40.191Z'
---

## Overview

### Impact

project_configure function exist remote code execute in Gerapy < 0.9.8

### Patches

Patched in version 0.9.8, please install with:

```
pip3 install -U gerapy
```

## Affected packages

- `gerapy < 0.9.8`

## Remediation

Upgrade to a patched release:

- `gerapy 0.9.8`
