[CRITICAL] Forgejo Runner runs privileged with Docker socket #9
Labels
No labels
area:documentation
area:infrastructure
area:network
area:security
priority:critical
priority:high
priority:low
priority:medium
status:blocked
type:bug
type:deployment
type:enhancement
type:investigation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
reinitialized.net/infrastructure#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Labels:
area:security,area:build,priority:critical,type:bugDescription
The Forgejo CI runner container on apps2 runs with the
--privilegedflag and mounts the Docker socket directly (/var/run/docker.sock).File:
hosts/apps2.nixlines 297-302Impact
CRITICAL — Any Forgejo CI job has full root access to the apps2 host. This enables:
Any contributor who can push code to a repository with CI enabled can execute arbitrary code as root on apps2.
Recommended Fix
--privilegedfrom the runner container optionsReferences