We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a601ede commit a0e19e8Copy full SHA for a0e19e8
1 file changed
internal/batches/executor/run_steps.go
@@ -610,6 +610,7 @@ func createCidFile(ctx context.Context, tempDir string, repoSlug string) (string
610
}
611
612
func getAbsoluteMountPath(batchSpecDir string, mountPath string) (string, error) {
613
+ // Use OpenRoot to prevent path traversal and symlink attacks via mount paths
614
root, err := os.OpenRoot(batchSpecDir)
615
if err != nil {
616
return "", errors.Wrap(err, "opening batch spec directory")
0 commit comments