Viral infections such as herpes simplex virus (HSV), human papillomavirus (HPV), and varicella-zoster virus (VZV) can cause skin conditions such as cold sores, genital herpes, warts, and shingles.