Fe is more reactive than Cu and hence, it displaces the less reactive Cu from CuSO4 solution. In this case, iron metal from iron pot is participating in the reaction due to which holes are formed in the vessel. The reaction occurs as follows:
Fe(s)+CuSO4(aq)→FeSO4(aq)+Cu(s)