I've had it happen in cold weather on a 12ga. gun that is straight grip and has an especially smooth grip areas due to years of use, etc. The gun just slides back on recoil and your finger gets whacked.

The bottom line is you just need to grip the gun more tightly.