Kylian Mbappe scored two goals and set up another as defending champions
Olivier Giroud surpassed Thierry Henry as France's all-time leading scorer when he put the Les Bleus ahead with a low finish just before halftime.
Mbappe struck twice in the last 25 minutes before Robert Lewandowski converted a 98th-minute penalty following a Dayot Upamecano handball.
The result means France will meet the winner of the round-of-16 match between England and Senegal in the quarterfinals on Saturday (Dec. 10) while Poland are eliminated.