They have in some of their books fabricated narrations created by the enemies of the Prophet. Ahlul Bayt (AS) refuted those false narrations and proved according Quran that the Prophet Muhammad (SAWA) has the maximum knowledge in everything.
Allah (SWT) sent him to teach people the knowledge of the Book and Wisdom. How can he be illiterate??
Wassalam.