Traveling can only with a passport that is at least 6 months valid after the intended stay
Having complete and proper travel documents is your own responsibility at all times. So inform yourself well in time before your departure about the actual requirements of countries you intend to visit. Next to a valid passport a visa can be required as well. Provisions and rules differ from country to country and can be modified without prior notice. Always take your ticket receipt with you when you travel as it can be requested during check-in before your flight by the counter personnel and/or on arrival by immigration or customs personnel.