
CVE-2026-114148 - .NET Linux Tarball Local Privilege Escalation PoC & Exploit
Metadados uid=0 em tarballs .NET para Linux permitem escalonamento de privilegios local via extracao de arquivos owned by root.
CVE-2026-114148 v3.0.0 | .NET Linux Tarball LPE
By Gh0st-Bx1 | github.com/Ghost-Bx1
Os tarballs .NET para Linux (source-build e ASP.NET Core) incluem metadados de propriedade uid=0/gid=0 em arquivos executaveis criticos. Quando um administrador extrai esses tarballs para instalar o .NET no sistema (ex: /usr/local/dotnet), o kernel preserva esses metadados e cria os arquivos owned by root - mesmo que o tarball tenha sido fornecido por uma fonte nao confiavel.
Um atacante local que consiga substituir ou modificar o tarball antes da extracao pode injetar um executavel SUID ou sobrescrever um binario do sistema, resultando em escalacao de privilegios local para root.
| Campo | Valor |
|---|---|
| CVE | CVE-2026-114148 |
| CVSS | 7.8 (High) |
| CWE | CWE-276 (Incorrect Default Permissions) |
| Fornecedor | Microsoft |
| Data | Outubro 2026 |
| Versao | Tarball afetado | Fix |
|---|---|---|
| .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 only | 10.0.14 |
| .NET 11.x | source-build only | 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 ao extrair como root: sudo tar --no-same-owner -xzf dotnet.tar.gzEste repositorio e para fins educacionais e de pesquisa de segurança. Use apenas em ambientes autorizados.
| Tool | Description |
|---|---|
| ghost-ad | Active Directory - LDAP, Kerberoasting, AS-REP Roasting, BloodHound-lite |
| ghost-cloud | Cloud Security - AWS, Azure and GCP misconfiguration scanner |
| ghost-fuzz | Web Fuzzing - directory brute-force, parameter fuzzing, vhost enumeration |
| ghost-osint | OSINT - domain, email and IP intelligence from public sources |
| ghost-privesc | Privilege Escalation - Linux privesc checker, 17 vectors, GTFOBins |
| ghost-recon | Reconnaissance - DNS, SSL, WAF, subdomain enumeration, email security |
| ghost-report | Reporting - pentest report generator from any ghost-* JSON output |
| ghost-scan | Port Scanner - async TCP/UDP scanner with banner grabbing and CVE correlation |
| ghost-shell | Payload Generation - reverse shell and web shell generator, 25+ languages |
| ghost-spray | Credential Attacks - password spraying, stuffing, default credential testing |
| ghost-wifi | WiFi Attacks - monitor mode, deauth, WPA/WPA2 capture, PMKID, WPS, Evil Twin |
By Gh0st-Bx1