Described are lyophilized compositions comprising cidofovir, hydroxypropyl methylcellulose (HPMC) or hydroxyethylcellulose (HEC) and, optionally, a plasticizer. In particular, described are such compositions that form a sheet-shaped porous solid matrix. Also described are methods for producing such compositions and their use in treating human papillomavirus (HPV) infections and HPV-associated malignancies, in particular, HPV lesions and cervical cancer.