This bug (Track #25506), affecting how attachment page is displayed, was hiding in everyone's sight like an experienced spy from cold war era. Interestingly, this bug affected not only Twenty Twelve, but also Twenty Thirteen and Twenty Fourteen, though on a smaller scale.
So, one shot - three bugs fixed! 😀