The CAR shares its northern border with Sudan to the east and Chad to the west .