The M27 in Call of Duty 4 is a gold-plated assault shotgun, and unlocking it is no small feat. You'll need to first earn several golden weapons:
Unlock the golden Desert Eagle by reaching level 55, the golden Dragunov by completing all sniper rifle challenges, the golden AK47 by finishing all assault rifle challenges, and the golden Mini-Uzi by completing all SMG challenges.
Once unlocked, the M27 is widely regarded as one of the best weapons in the game. Its superb range and high power make it excellent for clearing buildings and firing shots down long sightlines, much like the MP44. Note that it can't take attachments or a suppressor, so you'll be relying on its iron sights. After unlocking, it falls under the shotgun category.