Jared Fogle got a surprise beatdown in federal prison from an inmate who has major issues with child molesters ... TMZ has learned.
According to docs, Fogle got jumped in the rec yard at Englewood prison in Colorado back on January 29, and it was not much of a fight. An inmate named Steven Nigg pushed Fogle down and then unloaded a barrage of punches to his face.
Nigg, who's in for a weapons charge, left Fogle with a bloody nose, swollen face and scratches on his neck. 60-year-old Nigg was also injured -- a small cut on his left hand from delivering the whuppin'. Prison officials put Nigg in solitary as punishment.
We spoke to Nigg's family and they're not surprised. We're told Steven's pissed because so many child sex predators are housed in the low security facility, and Fogle was just the last straw.
Jared's attorney had no comment. We don't wanna say karma, but ... oops.