Scenario 1: if you are traveling on a passport other then pakistan then it depends on the visa/passport expiry, and duration of you stay in PAKISTAN. Otherwise on the airport even if you have 5 day to expire you are good to go, but once expired then it will be a problem. Scenario 2: you have Pakistani passport, then take CNIC/ NICOP with you so if it expires you can renew it in local NADRA office. Scenario 3: you are foreign passport; in this case you will apply for a pakistani visa and in this case ask the embassy first because on 5 months to expire they probably will not issue a visa on that passport. I hope i had answered your questions, have a safe trip
I have Pakistani passport so that’s will bi fine
Thanks! Your answer is awaiting moderation.