Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-22986: Unauthenticated Remote Command Execution in F5 BIG-IP and BIG-IQ iControl REST

Published Mar 31, 2021 · Updated 21 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS99.9%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
F5
IdentifiersCVE-2021-22986CWE-306

CVE-2021-22986 is an unauthenticated remote command execution vulnerability in the iControl REST interface of F5 BIG-IP and BIG-IQ Centralized Management. An attacker with network access to the interface can bypass authentication and execute arbitrary system commands with root privileges. A documented exploitation chain abuses server-side request forgery in authentication processing to obtain an authenticated session token, then uses that token to invoke command-execution functionality through the REST API. Exploitation is restricted to the control plane through management interfaces or self IP addresses; data-plane access alone is insufficient. BIG-IP Appliance mode does not prevent exploitation. The vulnerability has been actively exploited, including by LockBit affiliates and in attempts to deploy Mirai and cryptocurrency miners.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can completely compromise the affected appliance, allowing arbitrary command execution as root, access to sensitive configuration and credentials, creation or deletion of files, and disabling of services. These capabilities threaten confidentiality, integrity, and availability and can provide an entry point into connected enterprise networks.

Mitigation

If you can’t patch tonight, do this now.

Until an upgrade is possible, apply F5's product-specific workarounds to block iControl REST access through self IP addresses and restrict management-interface access to trusted administrative networks or devices. Enforce these restrictions with management access controls, firewall rules, and network segmentation. Appliance mode alone is not a mitigation.

Remediation

Patch, then assume compromise.

Upgrade to a supported release containing the fix. Historical fixed BIG-IP releases are 16.0.1.1, 15.1.2.1, 14.1.4, 13.1.3.6, 12.1.5.3, and 11.6.5.3 for their respective branches. Fixed BIG-IQ releases are 7.1.0.3 and 7.0.0.2. No fixed BIG-IQ 6.x release is identified; migrate affected 6.x deployments to a supported, fixed release. Review appliance activity and logs for evidence of compromise, especially where the vulnerable interface was exposed to untrusted networks.

Public exploits

Exploits

5 exploits validated by Mallory's analysis. Hidden: 9 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
f5_icontrol_rest_ssrf_rce.rbThis repository contains a single Metasploit module (modules/exploits/linux/http/f5_icontrol_rest_ssrf_rce.rb) that exploits CVE-2021-22986, a critical unauthenticated SSRF and remote code execution vulnerability in the F5 BIG-IP and BIG-IQ iControl REST API. The exploit leverages a flaw in the /mgmt/shared/authn/login endpoint to generate a valid authentication token via SSRF, which is then used to execute arbitrary commands as root on the target device. The module supports both direct command execution (e.g., reverse shell) and staged payloads (e.g., Meterpreter). The code is written in Ruby and is designed for use within the Metasploit framework, providing weaponized exploitation capabilities. The main attack vector is network-based, targeting the HTTPS management interface of vulnerable F5 devices. The module is highly configurable, allowing the operator to specify payloads and target endpoints. The exploit is operational and has been tested against multiple versions of BIG-IP. Notable endpoints include /mgmt/shared/authn/login and /mgmt/shared/authz/users/<username>.Disclosed Mar 10, 2021 · Framework: metasploit · ruby · networkWeaponizedf5_rce_pocThis repository contains a Python exploit script (f5_rce.py) targeting F5 BIG-IP devices vulnerable to CVE-2021-22986, a critical unauthenticated remote code execution vulnerability. The script allows the user to execute arbitrary system commands on the target device by sending crafted POST requests to the management API endpoints. It supports both direct exploitation (using default or provided credentials) and an SSRF-based method to obtain a valid authentication token before executing commands. The script can target a single URL or perform batch exploitation from a file. The README provides usage instructions and references to the vulnerability. The main exploit logic is in f5_rce.py, which is the only code file. The script interacts with the following fingerprintable endpoints: /mgmt/tm/util/bash (for command execution), /mgmt/shared/authn/login (for token acquisition), and /mgmt/shared/authz/tokens/ (token reference). The exploit is operational, providing real command execution on vulnerable targets.S1xHcL · Disclosed Mar 19, 2021 · python · networkOperationalCVE-2021-22986This repository contains a Python exploit script (CVE-2021-22986.py) targeting F5 BIG-IP and BIG-IQ devices vulnerable to CVE-2021-22986, a critical unauthenticated remote command execution flaw in the iControl REST API. The exploit works by first attempting to leak or forge an authentication token via the /mgmt/shared/authn/login endpoint. If successful, it uses this token to send commands to the /mgmt/tm/util/bash endpoint, providing the attacker with an interactive shell for arbitrary command execution on the target device. The script is operational and provides a real shell, not just a proof of concept. The README provides a brief description and usage instructions. No hardcoded IPs or domains are present; the script requires the user to supply the target host. The exploit is network-based and requires HTTPS access to the vulnerable API endpoints.microvorld · Disclosed Mar 22, 2021 · python · networkOperationalCVE-2021-22986This repository contains two Python exploit scripts (CVE_2021_22986.py and newpoc.py) targeting CVE-2021-22986, a critical unauthenticated remote command execution vulnerability in F5 BIG-IP and BIG-IQ systems via the iControl REST API. The scripts allow an attacker to: - Check if a target is vulnerable - Execute arbitrary system commands remotely - Obtain a reverse shell on the target - Perform batch scanning of multiple targets The main attack vector is network-based, requiring access to the management interface or self IPs exposing the iControl REST API. The exploit works by sending crafted POST requests to the /mgmt/tm/util/bash endpoint, using a default or hardcoded Authorization header. The newpoc.py script also attempts to extract authentication tokens from /mgmt/shared/authn/login and /mgmt/shared/authz/tokens/ endpoints, but falls back to the same unauthenticated command execution if token extraction fails. The README.md provides detailed usage instructions, affected product versions, and references. The exploit is operational, providing both command execution and reverse shell capabilities, and is suitable for both single-target and batch exploitation scenarios.Al1ex · Disclosed Mar 22, 2021 · python · networkOperationalF5-BIG-IP-POCThis repository is a collection of Proof-of-Concept (POC) exploits for three critical vulnerabilities affecting F5 BIG-IP devices: CVE-2020-5902, CVE-2021-22986, and CVE-2022-1388. The code is written in Go and consists of four main files: one for each CVE and a main orchestrator (F5.go). The main entry point (F5.go) parses command-line arguments for the target URL and command to execute, then sequentially tests each vulnerability. - CVE-2020-5902 exploit attempts to read the /etc/passwd file via a crafted HTTP GET request, indicating a successful exploit if the file is retrieved. - CVE-2021-22986 and CVE-2022-1388 exploits send crafted HTTP POST requests to the /mgmt/tm/util/bash endpoint, attempting to execute arbitrary shell commands (default is 'id', but customizable via the -c flag). The repository is intended for authorized security research and includes a README with usage instructions and vulnerability descriptions. No hardcoded IPs or domains are present; the user must supply the target URL. The attack vector is network-based, targeting exposed F5 BIG-IP management interfaces over HTTPS.west9b · Disclosed May 28, 2022 · go · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
F5Big-Ip Aamapplication
F5Big-Ip Access Policy Managerapplication
F5BIG-IP Advanced Firewall Managerapplication
F5Big-Ip Advanced Web Application Firewallapplication
F5Big-Ip Analyticsapplication
F5BIG-IP Application Security Managerapplication
F5Big-Ip Ddos Hybrid Defenderapplication
F5BIG-IP DNSapplication
F5Big-Ip Fraud Protection Serviceapplication
F5Big-Ip Link Controllerapplication
F5BIG-IP Local Traffic Managerapplication
F5BIG-IP Policy Enforcement Managerapplication
F5Big-Iq Centralized Managementapplication
F5Ssl Orchestratorapplication
FAQ

Frequently asked questions

Is CVE-2021-22986 exploited in the wild?
Yes. As of Nov 7, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2021-22986?
Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2021-22986, the earliest disclosed Mar 10, 2021.
Is there a patch for CVE-2021-22986?
Upgrade to a supported release containing the fix. Historical fixed BIG-IP releases are 16.0.1.1, 15.1.2.1, 14.1.4, 13.1.3.6, 12.1.5.3, and 11.6.5.3 for their respective branches.
What products are affected by CVE-2021-22986?
F5 Big-Iq Centralized Management, F5 Big-Ip Aam, F5 Big-Ip Access Policy Manager, F5 BIG-IP Advanced Firewall Manager, F5 Big-Ip Advanced Web Application Firewall, and 9 more.
How severe is CVE-2021-22986?
CVE-2021-22986 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.9% (100th percentile) as of Nov 7, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence2Every report linking this CVE to a named adversary.
Associated malware5Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.