Pope Francis will undergo an intestinal surgery on Wednesday and spend several days in the hospital recovering, Vatican officials said.