PoC Monitor
← All CVEs
CVE-2021-22986published 31 Mar 2021 14:04 UTCData: JSON · API

F5 BIG-IP; BIG-IQ

F5 BIG-IP and BIG-IQ Centralized Management iControl REST Remote Code Execution Vulnerability

Edge device · Load balancer / ADCknown edge product: F5 BIG-IP; BIG-IQ F5 BIG-IP and BIG-IQ (high confidence)

On BIG-IP versions 16.0.x before 16.0.1.1, 15.1.x before 15.1.2.1, 14.1.x before 14.1.4, 13.1.x before 13.1.3.6, and 12.1.x before 12.1.5.3 amd BIG-IQ 7.1.0.x before 7.1.0.3 and 7.0.0.x before 7.0.0.2, the iControl REST interface has an unauthenticated remote command execution vulnerability. Note: Software versions which have reached End of Software Development (EoSD) are not evaluated.

First public PoC 14 days beforebefore publication · 17 Mar 2021
Public PoCs1613 on GitHub · 3 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-918
CISA KEV 3 Nov 2021217 days after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+30+60+90+120+150+180+210First public PoC17 Mar 2021 · t−14dCVE published31 Mar 2021 · t = 0Added to CISA KEV3 Nov 2021 · t+217d

First public PoC 14 days before publication; added to CISA KEV 217 days after publication. First PoC: dorkerdevil/CVE-2021-22986-Poc (created 17 Mar 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

13 PoCs · 1 pending · 3 informational · 2 suspicious or fake

PoCs 13
RepositoryCreatedStarsAssessment
dorkerdevil/CVE-2021-22986-Poc 17 Mar 2021 −14 d 51 PoC via PoC Index
S1xHcL/f5_rce_poc 19 Mar 2021 −12 d 26 PoC older repo: PoC date unknown, not used for the first PoC
safesword/F5_RCE 21 Mar 2021 −10 d 4 PoC older repo: PoC date unknown, not used for the first PoC
Flags · score 15
  • owner account created less than 30 days before the repo

Below the suspicion threshold (50); does not change the assessment.

microvorld/CVE-2021-22986 22 Mar 2021 −9.5 d 0 PoC
Al1ex/CVE-2021-22986 22 Mar 2021 −9.3 d 90 PoC
kiri-48/CVE-2021-22986 22 Mar 2021 −9.2 d 0 PoC
qdtad/CVE-2021-22986 22 Mar 2021 −9.2 d 0 PoC
ZephrFish/CVE-2021-22986_Check 23 Mar 2021 −8.5 d 3 Scanner
yaunsky/CVE-202122986-EXP 26 Mar 2021 −5.4 d 8 PoC older repo: PoC date unknown, not used for the first PoC
DDestinys/CVE-2021-22986 1 Apr 2022 +1.0 y 0 PoC
west9b/F5-BIG-IP-POC 28 May 2022 +1.2 y 10 PoC via PoC Index
amitlttwo/CVE-2021-22986 7 Feb 2023 +1.9 y 0 PoC
huydung26/CVE-2021-22986 28 Dec 2023 +2.7 y 0 PoC
Pending 1
RepositoryCreatedStarsAssessment
Udyz/CVE-2021-22986-SSRF2RCE unknown 0 Pending · repository unavailable (HTTP 404)
Informational 3
RepositoryCreatedStarsAssessment
Osyanina/westone-CVE-2021-22986-scanner 20 Mar 2021 −11 d 0 Informational · detection
Tas9er/CVE-2021-22986 29 Mar 2021 −2.3 d 13 Informational · write-up
dotslashed/CVE-2021-22986 29 Mar 2021 −2 d 0 Informational · write-up
Suspicious or fake 2
RepositoryCreatedStarsAssessment
saucer-man/exploit 1 Feb 2021 −58 d 11 Fake
AnonymouID/POC 25 Apr 2022 +1.1 y 2 Fake
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 13 PoC repos

POST /mgmt/tm/util/bash

Key headers
Authorization: Basic YWRtaW46QVNhc1M= Authorization: Basic YWRtaW46YWRtaW4= Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 X-F5-Auth-Token: X-F5-Auth-Token: {var}
Body markers
"command":"run" "utilCmdArgs":"-c id" "utilCmdArgs":"-c whoami" "utilCmdArgs":"-c '{var}'" command=run utilCmdArgs=-c ' in application/json
Ports
8080, 8100, 8443
PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:76.0) Gecko/20100101 Firefox/76.0 Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 hello-world
Seen in
12 repos: Al1ex/CVE-2021-22986, DDestinys/CVE-2021-22986, S1xHcL/f5_rce_poc, ZephrFish/CVE-2021-22986_Check, amitlttwo/CVE-2021-22986, dorkerdevil/CVE-2021-22986-Poc, huydung26/CVE-2021-22986, kiri-48/CVE-2021-22986, microvorld/CVE-2021-22986, qdtad/CVE-2021-22986, safesword/F5_RCE, yaunsky/CVE-202122986-EXP
Evidence
Al1ex/CVE-2021-22986/CVE_2021_22986.py:42 Al1ex/CVE-2021-22986/CVE_2021_22986.py:61 Al1ex/CVE-2021-22986/CVE_2021_22986.py:84 Al1ex/CVE-2021-22986/newpoc.py:48 Al1ex/CVE-2021-22986/newpoc.py:53 Al1ex/CVE-2021-22986/newpoc.py:73

POST /mgmt/shared/authn/login

Body markers
"bigipAuthCookie":"" "username":"admin" "loginReference" "userReference" "bigipAuthCookie" "link":"http://localhost/mgmt/tm/access/bundle-install-tasks" "filePath":"`id`" in application/json
Ports
8080, 8100
PoC User-Agent
hello-world
Seen in
7 repos: Al1ex/CVE-2021-22986, amitlttwo/CVE-2021-22986, dorkerdevil/CVE-2021-22986-Poc, huydung26/CVE-2021-22986, kiri-48/CVE-2021-22986, microvorld/CVE-2021-22986, qdtad/CVE-2021-22986
Evidence
Al1ex/CVE-2021-22986/newpoc.py:32 amitlttwo/CVE-2021-22986/new-poc.py:32 dorkerdevil/CVE-2021-22986-Poc/README.md:8 huydung26/CVE-2021-22986/CVE-2021-22986.py:41 huydung26/CVE-2021-22986/CVE-2021-22986.py:45 kiri-48/CVE-2021-22986/exploit.py:10

POST //{var}/mgmt/tm/util/bash

Key headers
Authorization: Basic YWRtaW46QVNhc1M= X-F5-Auth-Token:
Body markers
"command":"run" "utilCmdArgs":"-c id" in application/json
Seen in
1 repo: yaunsky/CVE-202122986-EXP
Evidence
yaunsky/CVE-202122986-EXP/CVE202122986.py:23 yaunsky/CVE-202122986-EXP/CVE202122986.py:62

POST /mgmt/tm/access/bundle-install-tasks

Body markers
"filePath":"`id`" in application/x-www-form-urlencoded
Ports
8100
Seen in
1 repo: dorkerdevil/CVE-2021-22986-Poc
Evidence
dorkerdevil/CVE-2021-22986-Poc/README.md:6

POST /tmui/login.jsp

Key headers
Authorization: Basic YWRtaW46YWRtaW4= X-F5-Auth-Token:
Ports
8080
Seen in
1 repo: DDestinys/CVE-2021-22986
Evidence
DDestinys/CVE-2021-22986/CVE-2021-22986.py:36

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /mgmt/tm/util/bash
(?i)^/mgmt/tm/util/bash(?:[?#].*)?$
POST /mgmt/shared/authn/login
(?i)^/mgmt/shared/authn/login(?:[?#].*)?$
POST //{var}/mgmt/tm/util/bash
(?i)^//[^/?#]*/mgmt/tm/util/bash(?:[?#].*)?$
POST /mgmt/tm/access/bundle-install-tasks
(?i)^/mgmt/tm/access/bundle-install-tasks(?:[?#].*)?$
POST /tmui/login.jsp
(?i)^/tmui/login\.jsp(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /mgmt/tm/util/bash
alert http any any -> $HOME_NET [8080,8100,8443] (msg:"GG PoC-Monitor CVE-2021-22986 F5 BIG-IP|3b| BIG-IQ exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/mgmt/tm/util/bash"; http.header; content:"Authorization: Basic YWRtaW46QVNhc1M="; nocase; http.header; content:"Authorization: Basic YWRtaW46YWRtaW4="; nocase; http.header; content:"Cache-Control: max-age=0"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.header_names; content:"X-F5-Auth-Token"; nocase; http.header_names; content:"X-F5-Auth-Token"; nocase; http.request_body; content:"|22|command|22|:|22|run|22|"; http.request_body; content:"|22|utilCmdArgs|22|:|22|-c id|22|"; http.request_body; content:"|22|utilCmdArgs|22|:|22|-c whoami|22|"; http.request_body; content:"|22|utilCmdArgs|22|:|22|-c '"; http.request_body; content:"command=run"; http.request_body; content:"utilCmdArgs=-c '"; reference:url,poc.griffinguard.io/cve/CVE-2021-22986; classtype:web-application-attack; sid:9091305; rev:1;)
POST /mgmt/shared/authn/login
alert http any any -> $HOME_NET [8080,8100] (msg:"GG PoC-Monitor CVE-2021-22986 F5 BIG-IP|3b| BIG-IQ exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/mgmt/shared/authn/login"; http.request_body; content:"|22|bigipAuthCookie|22|:|22||22|"; http.request_body; content:"|22|username|22|:|22|admin|22|"; http.request_body; content:"|22|loginReference|22|"; http.request_body; content:"|22|userReference|22|"; http.request_body; content:"|22|bigipAuthCookie|22|"; http.request_body; content:"|22|link|22|:|22|http://localhost/mgmt/tm/access/bundle-install-tasks|22|"; http.request_body; content:"|22|filePath|22|:|22|`id`|22|"; reference:url,poc.griffinguard.io/cve/CVE-2021-22986; classtype:web-application-attack; sid:9840050; rev:1;)
POST //{var}/mgmt/tm/util/bash
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-22986 F5 BIG-IP|3b| BIG-IQ exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/mgmt/tm/util/bash"; http.header; content:"Authorization: Basic YWRtaW46QVNhc1M="; nocase; http.header_names; content:"X-F5-Auth-Token"; nocase; http.request_body; content:"|22|command|22|:|22|run|22|"; http.request_body; content:"|22|utilCmdArgs|22|:|22|-c id|22|"; reference:url,poc.griffinguard.io/cve/CVE-2021-22986; classtype:web-application-attack; sid:9116688; rev:1;)
POST /mgmt/tm/access/bundle-install-tasks
alert http any any -> $HOME_NET [8100] (msg:"GG PoC-Monitor CVE-2021-22986 F5 BIG-IP|3b| BIG-IQ exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/mgmt/tm/access/bundle-install-tasks"; http.request_body; content:"|22|filePath|22|:|22|`id`|22|"; reference:url,poc.griffinguard.io/cve/CVE-2021-22986; classtype:web-application-attack; sid:9500284; rev:1;)
POST /tmui/login.jsp
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2021-22986 F5 BIG-IP|3b| BIG-IQ exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/tmui/login.jsp"; http.header; content:"Authorization: Basic YWRtaW46YWRtaW4="; nocase; http.header_names; content:"X-F5-Auth-Token"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-22986; classtype:web-application-attack; sid:9806696; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /mgmt/tm/util/bash
title: F5 BIG-IP; BIG-IQ exploit attempt (CVE-2021-22986)
id: gg-pocmon-cve-2021-22986-9091305
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22986. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-22986
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/mgmt/tm/util/bash'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.22986
POST /mgmt/shared/authn/login
title: F5 BIG-IP; BIG-IQ exploit attempt (CVE-2021-22986)
id: gg-pocmon-cve-2021-22986-9840050
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22986. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-22986
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/mgmt/shared/authn/login'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.22986
POST //{var}/mgmt/tm/util/bash
title: F5 BIG-IP; BIG-IQ exploit attempt (CVE-2021-22986)
id: gg-pocmon-cve-2021-22986-9116688
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22986. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-22986
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/mgmt/tm/util/bash'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.22986
POST /mgmt/tm/access/bundle-install-tasks
title: F5 BIG-IP; BIG-IQ exploit attempt (CVE-2021-22986)
id: gg-pocmon-cve-2021-22986-9500284
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22986. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-22986
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/mgmt/tm/access/bundle-install-tasks'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.22986
POST /tmui/login.jsp
title: F5 BIG-IP; BIG-IQ exploit attempt (CVE-2021-22986)
id: gg-pocmon-cve-2021-22986-9806696
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22986. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-22986
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/tmui/login.jsp'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.22986