CVE-2021-33191 MiNiFi CPP arbitrary script execution is possible on the agent's host machine through the c2 protocol

Critical 9.8 Published Updated

Attackers can execute arbitrary scripts on the host machine via the c2 protocol's agent-update command, requiring an upgrade to mitigate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-33191?

CVE-2021-33191 is a critical command injection vulnerability in Apache NiFi - MiNiFi C++, published on 24 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

From Apache NiFi MiNiFi C++ version 0.5.0 the c2 protocol implements an "agent-update" command which was designed to patch the application binary. This "patching" command defaults to calling a trusted binary, but might be modified to an arbitrary value through a "c2-update" command. Said command is then executed using the same privileges as the application binary. This was addressed in version 0.10.0

Weakness: CWE-78

Which versions are affected by CVE-2021-33191?

It affects 1 product.

Products include Apache Nifi Minifi C\+\+.

How do I fix CVE-2021-33191?

No fix has been published for CVE-2021-33191 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2021-33191 being exploited?

There is no known exploitation of CVE-2021-33191 in the wild and no public exploit code.

Sources

Also known as GHSA-h5f6-7m57-f2rg.

Is CVE-2021-33191 in your software?

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

Check your SBOMs for free