CVE DatabaseCVE-2020-5902
한국어 권고문 →
CVE-2020-59029.8/CRITICALCISA KEVCWE-22CWE-22

F5 BIG-IP TMUI Remote Code Execution (RCE) and Directory Traversal Vulnerability Security Advisory (CVE-2020-5902)

⚡ Jump to Patch
Affected Vendors
f5
Affected Components
big-ip
Published Date
2020-07-01
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
100.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Traffic Management User Interface (TMUI), also known as the Configuration utility, in F5 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

Impact

Unauthenticated remote attackers can exploit directory traversal to read arbitrary system files or execute remote commands with administrative privileges, leading to complete system compromise

Mitigation

Immediately upgrade to the patched versions provided by F5, or apply temporary workarounds to restrict external access to the TMUI management interface

Affected Products & Version Scope

F5 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

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Follow F5's official guidance to upgrade to a patched hotfix or release. Below are the commands to verify and perform the upgrade via the BIG-IP CLI.

bash
# Verify current software versions and active volumes
show sys software

# Install the downloaded secure image (e.g., BIGIP-15.1.0.4) to an inactive volume
install sys software image BIGIP-15.1.0.4.iso volume HD1.2

# Monitor the installation progress
watch show sys software status

# Reboot into the newly patched volume once installation is complete
reboot volume HD1.2

2. Temporary Workaround & Hardening Configuration

If patching cannot be applied immediately, restrict external access to the TMUI (port 443) and apply the following configuration block to block malicious URI patterns.

bash
# Use tmsh to include rewrite rules blocking semicolon and hsqldb bypasses
tmsh modify sys httpd include '
<LocationMatch ";">
    Redirect 404 /
</LocationMatch>
<LocationMatch "hsqldb">
    Redirect 404 /
</LocationMatch>
'

# Save the configuration and restart the httpd service
tmsh save sys config
bigstart restart httpd

3. Log Audit & IoC Verification Commands

Run the following commands on the BIG-IP system to inspect logs for potential exploitation attempts.

bash
# Scan Apache access logs for directory traversal and bypass attempts
grep -E '(/\.\.\;|/tmui/locallb/workspace/|hsqldb)' /var/log/httpd/ssl_access_log

# Check audit logs for unauthorized tmsh command executions
grep -i 'tmsh' /var/log/audit
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 TMUI console and apply the official F5 security patches.

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

This vulnerability (CVE-2020-5902) is a critical directory traversal (CWE-22) and Remote Code Execution (RCE) flaw in the F5 BIG-IP Traffic Management User Interface (TMUI). The root cause lies in a parser inconsistency between the Apache HTTPD front-end web server and the internal Tomcat servlet container. By inserting specific characters such as semicolons (';') or parameter delimiters into the URI path, an unauthenticated attacker can bypass Apache's authentication filters and directly access restricted internal Tomcat servlets (e.g., FileReadServlet, tmshCmd).

2. Exploitation Mechanics & Attack Scenario

An unauthenticated attacker crafts a malicious HTTP request targeting the vulnerable endpoints. For instance, sending a request to '/tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp' causes Apache to treat the request as a benign login page access, while Tomcat processes the path traversal after the semicolon, executing the file-reading servlet. This allows the extraction of sensitive configuration files and system credentials. Furthermore, by targeting the 'tmshCmd' servlet, attackers can execute arbitrary Traffic Management Shell (TMSH) commands, leading to full remote code execution under system privileges.

3. Infrastructure & Business Impact

BIG-IP appliances reside at the perimeter of enterprise networks, handling critical tasks like load balancing, SSL termination, and traffic filtering. With a CVSS score of 9.8 and active exploitation documented in CISA's KEV catalog, this vulnerability poses an extreme risk. Successful exploitation allows attackers to establish a foothold, perform lateral movement within the internal network, decrypt SSL traffic, steal sensitive credentials, or cause a complete denial of service (DoS), severely disrupting business operations.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2020-5902)

FAQ

Q1. How critical is CVE-2020-5902 and is it actively exploited in the wild?

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

Q2. Which vendors and products are affected by CVE-2020-5902?

Primary impacted vendors include f5 across big-ip. Scope summary: F5 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

Q3. What temporary mitigations or workarounds exist for CVE-2020-5902 before patching?

[Mitigation] Immediately upgrade to the patched versions provided by F5, or apply temporary workarounds to restrict external access to the TMUI management interface 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-2020-5902

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-2020-5902 F5 BIG-IP TMUI Remote Code Execution (RCE) and Directory Traversal Vulnerability Security Advisory (CVE-2020-5902) (CVSS 9.8) - Patch & Workaround | CVE Pulse