Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-D0cker | Kitploit
Tools/GitHubGitHub/nicetop1027/cve-2026-d0cker
Privilege EscalationContainer SecurityVulnerability AnalysisExploitationLearning & EducationContainer Escape
GitHubnicetop1027/cve-2026-d0cker

CVE-2026-D0cker

View Repository
6 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-Pending: Container Escape via runC maskPaths Vunlerability

Severity: Critical (CVSS 9.8)
Component: opencontainers/runc (libcontainer)
Vulnerability Type: CWE-59: Improper Link Resolution Before File Access ('Link Following')

🚨 Executive Summary

A critical vulnerability exists in runc's maskPaths function. When masking sensitive paths (like /proc/kcore) inside a container, runc uses os.OpenFile(path, O_PATH, 0) without the O_NOFOLLOW flag. This allows a malicious container process to replace the target path with a symlink to a sensitive host file (e.g., /etc/shadow), causing runc to perform mount operations on the host file instead of the container path.

💥 Exploit Proof of Concept

The included exploit.go demonstrates the kernel behavior that allows this bypass.

Usage

Compile and run inside a Linux environment (or a container with CAP_SYS_ADMIN if testing recursion):

root@kitploit:~
go run exploit.go

Exploit Code Analysis

root@kitploit:~
// Vulnerable Code Pattern in runC:
// 1. Path is typically provided as a string (e.g. from config)
// 2. runC calls os.OpenFile(path, O_PATH...)
// 3. MISSING: unix.O_NOFOLLOW flag
// Result: Kernel follows symlink if attacker swapped the path.

🛡️ Remediation

Patch Required: Update libcontainer/rootfs_linux.go to include unix.O_NOFOLLOW when opening destination paths for masking.

root@kitploit:~
- dstFh, err := os.OpenFile(path, unix.O_PATH|unix.O_CLOEXEC, 0)
+ dstFh, err := os.OpenFile(path, unix.O_PATH|unix.O_CLOEXEC|unix.O_NOFOLLOW, 0)

📂 Repository Structure

  • exploit.go: Functional PoC code in Go.
  • analysis.md: Detailed technical breakdown of the race condition.
  • cve_draft.md: Report template for submission.

Disclaimer: This code is for security research and educational purposes only.

Download Tool