Festival organizers said Saturday that Panahi's In Film Nist will be screened on May 20.
Rasoulof's Be Omid-e Didar will be shown on May 14.
An Iranian court in December sentenced both filmmakers to six years in prison on charges that included making propaganda against Iran's Islamic regime. Both were banned from making movies for 20 years. They are free on bail pending an appeal, but forbidden to travel abroad.
Cannes officials did not say how they received the films, only that they had arrived in recent days. They described the films as having been made in “semi-clandestine conditions.” The festival on the French Riviera runs May 11-22.