Tests against Sri Lanka last month in Rawalpindi and Karachi were Pakistan's first on home soil since a militant attack on Sri Lanka's team bus in Lahore in 2009.
Last month, Bangladesh agreed to play T20 matches in Pakistan but said tests would have to be played at a neutral venue because of security concerns.
In the revised arrangement, Bangladesh will play three T20s in Lahore between Jan. 24 and 27, then return to Pakistan for a test match starting on Feb. 7 in Rawalpindi that will be a part of the ICC World Championship.
After the Pakistan Super League concludes in March, Bangladesh will play an ODI in Karachi on April 3, with the second test starting two days later at the same venue.
"I am glad that the uncertainty around the series is now over and we can start planning for the smooth delivery of the matches," PCB chief executive Wasim Khan said.
"Bangladesh will visit Pakistan thrice, which should give them the comfort that Pakistan is as safe and secure as any other cricket-playing country." (Reporting by Rohith Nair in Bengaluru; Editing by Kevin Liffey)