Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-5902: Unauthenticated Remote Code Execution in F5 BIG-IP TMUI

Published Jul 1, 2020 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
F5
IdentifiersCVE-2020-5902CWE-22 · Improper Limitation of a Pathname…

CVE-2020-5902 is an unauthenticated remote code execution vulnerability in the F5 BIG-IP Traffic Management User Interface (TMUI), also known as the Configuration utility. It affects BIG-IP versions 15.0.0–15.1.0.3, 14.1.0–14.1.2.5, 13.1.0–13.1.3.3, 12.1.0–12.1.5.1, and 11.6.1–11.6.5.1. The vulnerability involves multiple components, including a directory traversal flaw, and is exploitable through specially crafted HTTP requests to affected TMUI pages. Successful exploitation permits arbitrary system command and Java code execution, file manipulation, and service disruption, potentially resulting in complete appliance compromise.

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 compromise the confidentiality, integrity, and availability of an affected BIG-IP appliance. Attackers can execute arbitrary commands and Java code, create or delete files, disable services, steal credentials, and exfiltrate accessible data. Control of the appliance can also support backdoor deployment, persistent access, and lateral movement into connected networks. Exploitation has been confirmed in government and commercial environments.

Mitigation

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

Restrict network access to TMUI to the fullest extent possible, remove public management-interface exposure, and limit access to trusted administrative systems. Apply the applicable F5 advisory mitigations if an immediate upgrade is not possible. Segment management infrastructure from other networks to limit lateral movement. Quarantine or take potentially compromised devices offline during investigation, and monitor management requests and appliance logs for exploitation attempts.

Remediation

Patch, then assume compromise.

Install an F5-fixed BIG-IP release for the applicable software branch, following F5 Security Advisory K52145254. Investigate previously exposed vulnerable devices for compromise using available F5 detection resources and reviews of processes, services, authentication activity, and network connections. If exploitation is detected, reimage or reconstitute compromised systems and provision new account credentials; patching alone does not remove an established compromise.

Public exploits

Exploits

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

View more in app →
f5_bigip_tmui_rce_cve_2020_5902.rbThis repository contains a single Metasploit module that exploits CVE-2020-5902, a critical remote code execution vulnerability in the F5 BIG-IP Traffic Management User Interface (TMUI). The exploit leverages a directory traversal flaw to upload and execute arbitrary shell scripts as the Unix root user. The module supports both direct command execution and staged payloads, including Meterpreter and netcat-based reverse shells. It interacts with the target's TMUI web interface over HTTPS, using specific endpoints to check for vulnerability, upload payloads, and execute commands. The exploit is weaponized, providing reliable remote code execution capabilities against vulnerable F5 BIG-IP devices. The code is written in Ruby and is structured as a standard Metasploit exploit module, making it easy to use within the Metasploit framework.Disclosed Jun 30, 2020 · Framework: metasploit · ruby · networkWeaponizedCVE-2020-5902This repository provides a working exploit for CVE-2020-5902, a critical unauthenticated remote code execution vulnerability in the F5 BIG-IP Traffic Management User Interface (TMUI). The main exploit script, CVE-2020-5902.py, is a Python tool that chains several vulnerable endpoints in the TMUI web interface to achieve arbitrary command execution as root. The exploit works by abusing directory traversal in the URL to access internal JSP endpoints (tmshCmd.jsp, fileSave.jsp, fileRead.jsp, directoryList.jsp) that allow for command execution, file read/write, and directory listing. The script is interactive, allowing the user to specify arbitrary shell commands to execute on the target. The repository also includes Java source files that appear to be decompiled or reference implementations of the vulnerable endpoints, providing insight into the backend logic of the TMUI interface. The README.md provides detailed usage instructions, example requests, and references to related exploits and mitigations. The exploit is operational and can be used to fully compromise vulnerable F5 BIG-IP systems with exposed management interfaces.jas502n · Disclosed Jul 5, 2020 · python · java · networkOperationalCVE-2020-5902This repository contains a Python exploit script (CVE-2020-5902.py) targeting the F5 Big-IP vulnerability CVE-2020-5902. The script allows an attacker to exploit the vulnerability in two ways: (1) Local File Read (LFR), which fetches arbitrary files from the target system, and (2) Remote Command Execution (RCE), which executes arbitrary commands on the target device. The script takes command-line arguments to specify the target host, exploit type, command to execute, and file to read. It constructs and sends crafted HTTPS requests to vulnerable endpoints on the F5 Big-IP management interface. The repository also includes a README.md with usage instructions and a requirements.txt listing dependencies (requests, urllib3). The exploit is operational and provides real attack capabilities against vulnerable F5 Big-IP devices.dunderhay · Disclosed Jul 6, 2020 · python · networkOperationalf5-bigip-rce-cve-2020-5902This repository provides a Python exploit script (f5-bigip-rce-cve-2020-5902.py) targeting the F5 BIG-IP TMUI remote code execution vulnerability (CVE-2020-5902). The script supports both single and batch IP testing, and offers multiple exploitation features: checking for the vulnerability, reading and writing arbitrary files, listing authentication users, listing directories, executing arbitrary shell commands (RCE), and checking for hsqldb authentication bypass. The main exploit leverages HTTP requests with crafted paths to exploit path traversal and command injection vulnerabilities in the TMUI component. The repository includes a README with detailed usage instructions, a sample IP list (1-2-f5.txt), and result directories for batch operations. The exploit is operational and can be used to gain unauthorized access and execute commands on vulnerable F5 BIG-IP systems.theLSA · Disclosed Jul 10, 2020 · python · networkOperationalCVE-2020-5902Repository contains a single Python proof-of-concept exploit script and a detailed README for CVE-2020-5902 (F5 BIG-IP TMUI). The exploit is a network-based, unauthenticated attack against the BIG-IP management interface (TMUI) leveraging a traversal sequence in the path (`/tmui/login.jsp/..;/...`) to reach internal JSP utilities. Structure/purpose: - `CVE-2020-5902.py`: Standalone Python3 CLI tool using `requests` with TLS verification disabled. Provides two exploit primitives: 1) `file_read(target, filepath)`: Sends a GET request to `.../workspace/fileRead.jsp?fileName=...` to retrieve arbitrary file contents. 2) `command_exec(target, cmd)`: Sends a GET request to `.../workspace/tmshCmd.jsp?command=...` with a URL-encoded tmsh command `run util bash -c '<cmd>'`, enabling arbitrary OS command execution (RCE). Prints response body as output. The script takes `--target`, `--mode {read,exec}`, and either `--file` or `--command`. - `README.md`: Explains impact, affected versions, and provides usage examples including reading `/etc/passwd` and `/config/bigip.conf`, and executing commands/reverse shell. Overall, this is an operational PoC exploit (not just detection) that can directly read files and execute commands on vulnerable F5 BIG-IP TMUI instances exposed over HTTP(S), typically on ports 443/8443.zaryouhashraf · Disclosed Mar 3, 2026 · python · markdown · networkOperationalF5-BIG-IPRepository contains a single Python exploit script (CVE-2020-5902.py), a README, and a license. The Python file is the operational entry point and implements an unauthenticated exploit for CVE-2020-5902 against F5 BIG-IP TMUI. The exploit builds an HTTPS base URL to a target IP/port, performs reconnaissance/fingerprinting, tests multiple path-traversal encodings to identify a working bypass, and then uses the vulnerable TMUI JSP endpoints to read arbitrary files and execute commands. Core capabilities visible from the code and README: (1) recon against the management interface, including TLS/HTTP fingerprinting and BIG-IP signature checks; (2) vulnerability confirmation by iterating over six traversal variants; (3) local file inclusion against fileRead.jsp to retrieve sensitive files such as /etc/passwd, /etc/f5-release, and BIG-IP configuration files; (4) remote command execution through tmshCmd.jsp, which the README describes as reaching tmsh/bash and yielding root-level command execution; (5) post-exploitation helpers including default info gathering, interactive shell mode, reverse shell establishment, and optional retrieval/deployment of a C2 implant from an operator-supplied URL. The repository is not part of a larger exploit framework. It is a standalone PoC/operational exploit written in Python using requests/urllib3. The README is extensive and explains the vulnerability mechanics, affected versions, attack flow, and usage. Based on the available code paths, this is a real exploit rather than a detector: it contains active exploitation logic and post-exploitation features, with operator-controlled command payloads and optional reverse-shell/C2 behaviors.DevRafaelprogrammer · Disclosed Jul 1, 2026 · python · markdown · web · networkOperationalcve-2020-5902The repository contains a standalone Python exploit script (13,182 bytes) and a README (15,401 bytes) with embedded source, installation guidance, and usage examples. It is not associated with an identified exploitation framework. The CLI offers check, lfi, rce, and brute modes; brute refers to attempting multiple file paths rather than guessing credentials. The visible exploit constructs a GET request to /tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp with an operator-controlled fileName parameter. This targets CVE-2020-5902 by attempting to bypass TMUI access restrictions through path traversal. The visible success handling checks HTTP 200 and a nonempty JSON output field. Requests use a Chrome-like User-Agent, Accept: */*, Connection: close, disabled certificate verification, and a default 15-second timeout. Results are printed to the terminal. The script also dispatches to command_exec, check_vulnerability, and brute_force_files. However, both supplied file representations contain truncated sections, including these function implementations. Consequently, the advertised RCE mechanism, command endpoint, built-in file list, and detection criteria cannot be confirmed. The README's suggestion that "id" can be executed does not establish arbitrary shell execution. Although --timeout is parsed, the visible dispatch does not pass its value to the request helper, so the claimed timeout configurability is not established. No callback, exfiltration service, persistence mechanism, or destructive payload is visible. The supplied material supports classifying this as an exploitation tool rather than merely a detector, but successful execution has not been verified. Repository URL, Git reference, and archive size were not provided; empty strings and zero represent unavailable metadata, not a measured archive size.yora1928 · Disclosed Oct 31, 2026 · python · webOperationalCVE-2020-5902This repository provides a Python proof-of-concept exploit for CVE-2020-5902, a critical remote code execution vulnerability in the F5 BIG-IP Traffic Management User Interface (TMUI). The main exploit script, 'exploit-CVE-2020-5902.py', allows an attacker to read arbitrary files from a vulnerable F5 BIG-IP system by sending specially crafted HTTPS requests to the TMUI fileRead.jsp endpoint. The script supports both single file reads (via the '-f' argument) and brute-forcing a list of common file paths (using the '-b' flag and the 'common_path.txt' wordlist). Results are saved in a structured directory under 'results/<IP>/'. The repository includes a README with usage instructions, a requirements.txt for dependencies, and a comprehensive wordlist of file paths to target. The exploit targets F5 BIG-IP versions 11.6.1-11.6.5.1, 12.1.0-12.1.5.1, 13.1.0-13.1.3.3, 14.1.0-14.1.2.5, and 15.0.0-15.1.0.3. No weaponized payload is included; the exploit is focused on file disclosure via a network attack vector.yasserjanah · Disclosed Jul 6, 2020 · python · networkPoCcve-2020-5902This repository contains a Python proof-of-concept exploit for CVE-2020-5902, a critical path traversal vulnerability in F5 BIG-IP devices. The main script, 'cve-2020-5902.py', allows an attacker to: - Check if a target URL is vulnerable by attempting to read /etc/passwd and looking for the 'root' user. - Read arbitrary files from the target system by specifying a file path. - Download multiple files in bulk from a list (provided in 'files.txt'). - Enumerate users and hostnames by reading /etc/passwd and /etc/hosts. - Scan a list of IPs/URLs to check for vulnerable hosts. The exploit works by sending crafted HTTP GET requests to a vulnerable endpoint on the target, exploiting the path traversal to access sensitive files. The repository includes a README with usage instructions, the main exploit script, and a sample file list ('files.txt') containing common Linux file paths to target. The exploit is a functional POC and does not include weaponized payloads beyond file reading capabilities.r0ttenbeef · Disclosed Jul 6, 2020 · python · networkPoCF5-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
F5Ssl Orchestratorapplication
FAQ

Frequently asked questions

Is CVE-2020-5902 exploited in the wild?
Yes. As of Nov 25, 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-2020-5902?
Yes. Mallory tracks 10 public exploits or proofs of concept for CVE-2020-5902, the earliest disclosed Jun 30, 2020.
Is there a patch for CVE-2020-5902?
Install an F5-fixed BIG-IP release for the applicable software branch, following F5 Security Advisory K52145254. Investigate previously exposed vulnerable devices for compromise using available F5 detection resources and reviews of processes, services, authentication activity, and network connections.
What products are affected by CVE-2020-5902?
F5 Big-Ip Aam, F5 Big-Ip Access Policy Manager, F5 BIG-IP Advanced Firewall Manager, F5 Big-Ip Advanced Web Application Firewall, F5 Big-Ip Analytics, and 8 more.
How severe is CVE-2020-5902?
CVE-2020-5902 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 25, 2026.
Activity feed

Recent activity

79 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+44 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
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 evidence18Every report linking this CVE to a named adversary.
Associated malware18Malware 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 activity7Community discussion across Reddit, Mastodon, and other social sources.