There is essentially no risk. There is a rare risk of bowel perforation if the rectal thermometer is not carefully inserted.
Mackowiak PA. Temperature regulation and the pathogenesis of fever. In: Mandell GL, Bennett JE, Dolin R, eds. Principles and Practice of Infectious Diseases. 6th ed. Philadelphia, Pa: Elsevier Churchill Livingstone; 2005:chap 47.
Powell KR. Fever. In: Kliegman RM, Behrman RE, Jenson HB, Stanton BF, eds. Nelson Textbook of Pediatrics. 18th ed. Philadelphia, Pa: Saunders Elsevier; 2007:chap 174.