CVE DatabaseCVE-2021-22986
한국어 권고문 →
CVE-2021-229869.8/CRITICALCISA KEVCWE-918CWE-918

F5 BIG-IP and BIG-IQ iControl REST Unauthenticated Remote Code Execution (RCE) Vulnerability (CVE-2021-22986) Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
f5
Affected Components
big-ip, big-iq
Published Date
2021-03-31
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
99.9%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

F5 BIG-IP (16.0.x, 15.1.x, 14.1.x, 13.1.x, 12.1.x) and BIG-IQ (7.1.0.x, 7.0.0.x) management interfaces running iControl REST.

Impact

Unauthenticated remote attackers can execute arbitrary system commands with elevated privileges, leading to complete compromise of the target device.

Mitigation

Immediately upgrade to the patched versions provided by F5 and restrict access to the iControl REST interface (TCP 443) from untrusted networks.

Affected Products & Version Scope

F5 BIG-IP 16.0.0 to 16.0.1, 15.1.0 to 15.1.2, 14.1.0 to 14.1.3, 13.1.0 to 13.1.3, 12.1.0 to 12.1.5, and BIG-IQ 7.1.0.0 to 7.1.0.2, 7.0.0.0 to 7.0.0.1.

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Follow F5 official advisories to upgrade to a patched release. Below are the standard CLI commands to install and activate a new software volume on BIG-IP.

bash
# Verify the uploaded ISO image on the system
tmsh show sys software

# Install the patched image to a new volume (e.g., HD1.2)
tmsh install sys software image BIGIP-16.0.1.1.0.0.6.iso volume HD1.2

# Monitor the installation progress
watch tmsh show sys software status

# Reboot into the newly patched volume
tmsh reboot volume HD1.2

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict access to the iControl REST interface using Self IP port lockdown or httpd allowed lists.

bash
# Disable management access on Self IPs
tmsh modify net self-ip [Self_IP_Name] allow-service none

# Restrict httpd access to trusted administrative subnets only
tmsh modify sys httpd allow replace-all-with { 10.10.10.0/24 192.168.100.0/24 }
tmsh save sys config

3. Log Audit & IoC Verification Commands

Inspect system logs for indicators of compromise (IoCs) related to unauthorized API calls.

bash
# Search restjavad logs for suspicious bash utility execution and SSRF patterns
grep -E '/mgmt/tm/util/bash|X-F5-Auth-Token' /var/log/restjavad.*.log

# Check httpd access logs for unauthorized POST requests to management endpoints
grep -i 'POST /mgmt/' /var/log/httpd/httpd_errors
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active exploitation in the wild, immediately restrict external access to the management interface and apply the official F5 security updates.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

CVE-2021-22986 is a critical unauthenticated remote code execution (RCE) vulnerability in the iControl REST interface of F5 BIG-IP and BIG-IQ appliances. The root cause lies in the improper authentication validation and Server-Side Request Forgery (SSRF, CWE-918) flaws within the internal API communication channels. An attacker can bypass authentication controls by sending specially crafted HTTP requests to the iControl REST endpoints, allowing them to execute administrative commands without valid credentials.

2. Exploitation Mechanics & Attack Scenario

Attackers target the exposed iControl REST API port (typically HTTPS 443). The exploitation flow generally proceeds as follows:

  • The attacker targets internal utility endpoints such as /mgmt/shared/authn/login or /mgmt/tm/util/bash.
  • By manipulating headers like X-F5-Auth-Token or leveraging SSRF to route requests via localhost, the attacker bypasses the authentication filter.
  • Once bypassed, the attacker sends a JSON payload containing arbitrary shell commands to the util/bash endpoint.
  • The BIG-IP system executes the command with root privileges and returns the output to the attacker.

3. Infrastructure & Business Impact

With a CVSS score of 9.8 and inclusion in the CISA KEV catalog, this vulnerability represents an extreme risk to enterprise infrastructure. Because BIG-IP devices function as critical Application Delivery Controllers (ADCs) and load balancers, compromise allows attackers to perform lateral movement into internal networks, intercept sensitive SSL/TLS traffic, steal private keys, and establish persistent backdoors.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-22986)

FAQ

Q1. How critical is CVE-2021-22986 and is it actively exploited in the wild?

CVE-2021-22986 is rated CVSS 9.8 (CRITICAL) with a 30-day EPSS exploitation probability of 99.9%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-22986?

Primary impacted vendors include f5 across big-ip, big-iq. Scope summary: F5 BIG-IP 16.0.0 to 16.0.1, 15.1.0 to 15.1.2, 14.1.0 to 14.1.3, 13.1.0 to 13.1.3, 12.1.0 to 12.1.5, and BIG-IQ 7.1.0.0 to 7.1.0.2, 7.0.0.0 to 7.0.0.1.

Q3. What temporary mitigations or workarounds exist for CVE-2021-22986 before patching?

[Mitigation] Immediately upgrade to the patched versions provided by F5 and restrict access to the iControl REST interface (TCP 443) from untrusted networks. Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-22986

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (f5)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-22986 F5 BIG-IP and BIG-IQ iControl REST Unauthenticated Remote Code Execution (RCE) Vulnerability (CVE-2021-22986) Analysis and Mitigation Guide (CVSS 9.8) - Patch & Workaround | CVE Pulse