Escape user input in docker build/pull commands

fix(security): escape user input in docker build/pull commands
Escape user input in docker build/pull commandscba0b2-fix-escape-user-input-in-docker-build-cve-2026-72877fixescape user input docker build pull

Committed by Siumauricio

commit message
fix(security): escape user input in docker build/pull commands

- dockerImage (buildRemoteDocker) -> docker pull / echo
- dockerContextPath (docker-file builder) -> cd
- publishDirectory (nixpacks builder) -> docker cp source/dest paths
 
These fields were interpolated unescaped into shell commands run via execAsync /
execAsyncRemote during deployment. All are now passed through shell-quote.
Registry credentials already went through safeDockerLoginCommand (unchanged).
 
Closes GHSA-g9cg-4mmj-mh7p, GHSA-jxxj-gmpx-h5rj, GHSA-qjrc-g63x-qhp9, GHSA-98j8-6vjr-c3xw

Editor assessment

This commit patches CVE-2026-72877. The subject is straightforward and broad enough to be honest: escape user input in docker build and pull commands. The body is a compact bulleted mapping, showing dockerImage flowing into pull and echo for remote builds, dockerContextPath into cd for the dockerfile builder, and publishDirectory into docker cp source and destination paths for nixpacks. It confirms every value now passes through shell-quote and that registry credentials were already safe. Four GHSAs are closed. Factual and complete, but it reads as a change inventory without impact analysis or tests.

Browse categories

More fix examples · Back to search