CVE-2021-32849 Arbitrary command execution in Gerapy

High 8.8 Published Updated

An authenticated user can execute arbitrary commands in the Gerapy distributed crawler management framework.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-32849?

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.

Official 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.

Weakness: CWE-77, CWE-78

Which versions are affected by CVE-2021-32849?

3 open source packages ship an affected version, including gerapy. It affects 1 product.

PackageAffectedFixed in
gerapy PyPIAll versions0.9.9
gerapy PyPIAll versions0.9.9
gerapy PyPIAll versions0.9.9

Products include Gerapy Gerapy.

How do I fix CVE-2021-32849?

Upgrade gerapy to 0.9.9 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-32849 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32849 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-756h-r2c9-qp5j, PYSEC-2022-17.

Is CVE-2021-32849 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free