LiveActive security incident?Get immediate response
CVE Record

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

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

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Apache NiFi MiNiFi C++ included a C2 update path that could be changed to run an arbitrary program on the agent host. If abused, code would run with the same privileges as the MiNiFi process. Apache says this was addressed in version 0.10.0.

Executive priority

Prioritize remediation where MiNiFi C++ agents are centrally managed through C2 or run with elevated privileges. The business risk is host-level code execution on data-flow infrastructure, but public evidence in this bundle does not show active exploitation.

Technical view

The C2 protocol's agent-update command, introduced from MiNiFi C++ 0.5.0, was intended to patch the application binary. A c2-update command could modify the trusted binary path to an arbitrary value, leading to command execution under the MiNiFi process account. The issue maps to CWE-78.

Likely exposure

Exposure is most likely where Apache NiFi MiNiFi C++ agents use the C2 protocol and run affected versions. The bundle names version 0.5.0 and states the issue was addressed in 0.10.0; exact affected range details are not fully enumerated here.

Exploitation context

The provided sources do not state active exploitation, and KEV is false. The sources also do not provide full attacker prerequisites, but exploitation centers on changing the C2 update command path so the agent executes another program.

Researcher notes

Key uncertainty is the complete affected version range. The description says the behavior exists from 0.5.0 and was addressed in 0.10.0, while the affected list only names 0.5.0. Validate against Apache release and deployment records.

Mitigation direction

  • Upgrade Apache NiFi MiNiFi C++ to version 0.10.0 or later.
  • Review Apache advisory details for version-specific guidance.
  • Restrict C2 protocol access to trusted management infrastructure only.
  • Disable C2 update functionality if not operationally required.
  • Run MiNiFi agents with least-privilege service accounts.
  • Audit C2 update configuration for unexpected command values.

Validation and detection

  • Inventory MiNiFi C++ agent versions across managed hosts.
  • Identify agents using the C2 protocol or update commands.
  • Confirm agents are upgraded to 0.10.0 or later.
  • Review service account privileges for MiNiFi processes.
  • Check logs and configs for unexpected c2-update changes.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-78: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-33191 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Apache Software FoundationApache NiFi - MiNiFi C++0.5.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-78 · source CWE mapping

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.