"I am up and moving around. Not as fast as I'd like to be, but I am OK," Goldberg said.
The talk show host and comedian, 62, has been absent from "The View" since Feb. 5.
Goldberg said she had pneumonia in both lungs and was also septic.
"I came very, very close to leaving the Earth," she said. "Good news, I didn't."
Goldberg thanked her friends, and critics, for their well-wishes and said she will share more about her health scare when she returns to the ABC daytime talk show. It's not clear when Goldberg plans to go back on the air.
On a Feb. 20 episode of the show, Joy Behar joked that her co-host was on maternity leave before telling viewers that Goldberg was "on the mend." Behar also denied rumors she was set to host the Oscars after Kevin Hart's departure.
Minyvonne Burke is a breaking news reporter for NBC News.