It's far from trivial, but certainly possible to challenge this. If the student has produced research that would be considered worthy of a PhD by most experts, they have a chance to still get their PhD unless the local university politics are extremely dysfunctional.