Hafnaoui competed in the 400 meter, 800 meter, and 1,500 meter freestyle events at the World Junior Championships in Budapest, Hungary; he placed fourth in the 800 meter freestyle with a time of 7:49.09 and sixth in the 1,500 meter freestyle with a time of 15:16.04.