Sen. Dianne Feinstein, D-Calif., admitted Tuesday the Deferred Action for Childhood Arrivals program was on "shaky legal ground."

After Chuck Todd from MSNBC's "Meet the Press Daily" asked her if DACA was legal, she responded that DACA was an executive order.

"Legal is the law of passage of something," she said. "I, you know, there are ten attorneys general that are prepared to sue. I don't want to get into that."

"The point is, DACA is here. And we've got 800,000 young people who depend on it," she added.

"Your answer indicates, though, that it's on shaky legal ground," Todd responded.

"It is. That's why we need to pass a law. And we should do it," Feinstein said.

Feinstein released a statement earlier on Tuesday expressing her support for DACA recipients.

"Congressional action is now the only way to guarantee that DACA recipients are shielded from deportation, and it must be our top priority," Feinstein said. "The DREAM Act — introduced by Senators Graham and Durbin to provide a path to citizenship for DACA recipients — deserves a vote as soon as possible."

"To DACA youth across the country, I say this is not over," she added. "I stand with you and your families. You are valued. Our country needs you. And I won't stop fighting to protect you."

Attorney General Jeff Sessions announced Tuesday DACA would end under the Trump administration in six months, allowing Congress time to pass legislation.

Former President Barack Obama established DACA through an executive order in 2012, protecting approximately 800,000 illegal immigrants ages 15-36 who arrived in the United States as minors from deportation.