Sofia Vergara looked ready to bust out of her dress at any moment at last night's 64th Annual Emmy Awards -- and at one point, she did!

The curvaceous 40-year-old split the seam on her stunning Zuhair Murad mermaid gown, exposing her rear end to a packed house of celebs.

The "Modern Family" star tweeted a very revealing pic of the wardrobe malfunction, showing how her dress split open 20 minutes before the show won Outstanding Comedy Series.

She posted a followup pic showing one of her stylists hard at work fixing the tear moments before Sofia had to walk on stage with the rest of the cast to collect their trophy -- tweeting "20 min Modern Family won!! Dress malfuncion !!! Thank you emergency team!!!"

Sofia Vergara on WhoSay

Looks like the mishap didn't put a damper on her night though -- as she was seen dancing the night away later with costar Julie Bowen, fiance Nick Loeb and son Manolo at the FOX after-party.

Hot Videos