Fingernails and toenails are most often infected when bacteria enters an injury on the cuticle, nail bed, or finger. Nail infections can be serious, and in some cases require medical attention.