Bug Burial challenged the duo to stay locked in a crate for ten minutes while it was filled with assorted bugs, insects and creepy crawlies.
After ten minutes an Allen key would be dropped into the crate, which would then allow them to unlock themselves and escape.
Before the task began, both Dorries and Flanagan seemed unsurprised to have been chosen by the public to take part in the trial.
Dorries said: "I fully expected this because I'm an MP and MPs are a conduit for public anger so I kind of expected it."
Flanagan also admitted that her previously nervous behaviour probably did her no favours: "Obviously because I'm terrified of heights and because I acted like a pathetic wimp it was embarrassing. I kind of want to be a bit better in this."
Within seconds of maggots being poured into her crate, however, Flanagan shouted: "I'm a celebrity get me out of here!" to lose the task for her team.
Dorries fared better, lasting four minutes as cockroaches and 500 crickets were added to her crate, but after complaining that she felt something biting her she also conceded the task. After she emerged covered in bugs, she joked to an incredulous Flanagan: "I've got a twig in my hair."
As the two celebrities left, Flanagan turned to Dorries and whispered: "I want to go home."
I'm a Celebrity...Get Me Out of Here! continues tomorrow night at 9pm on ITV1.