Skip to content

feat(java): detect non-literal container bind-mount source paths built by concatenation (CWE-22) - #186

Open
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/jenkins-docker-bind-mount-nonliteral
Open

feat(java): detect non-literal container bind-mount source paths built by concatenation (CWE-22)#186
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/jenkins-docker-bind-mount-nonliteral

Conversation

@ai-anant

@ai-anant ai-anant commented Sep 4, 2026

Copy link
Copy Markdown

Detects docker/podman -v / --volume bind-mount arguments whose source path is assembled from a string concatenation of variables (build parameters, env expansions, metavariable-derived values) rather than a fixed literal. Attacker-influenceable values concatenated into a bind-mount source expose arbitrary host paths read-write inside a container (usually running as root) — e.g. mounting /var/run/docker.sock or secret files. Sanitized mounts (':ro' / ':Z' suffix appended to the concatenation) are excluded.

Generic pattern only; no project, file path, version or PoC details included.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant