But the 70-year-old is likely to remain under heavy guard at his villa on the edge of Islamabad, where he has been under house arrest since April, because of serious threats to his life. His name is currently on the interior ministry's "exit control list", which means he cannot leave Pakistan without the approval of the government.
Judge Wajid Ali approved bail on condition Musharraf pay bonds totalling Rs200,000 ($2,000).
The retired general was arrested last month over the deadly 2007 raid on Lal Masjid in Islamabad, just a day after he was given bail in the last of three major cases against him dating back to his 1999-2008 rule.
The former commando returned to Pakistan in March to run in the May general election, vowing to "save" the country from economic collapse and militancy.
But he was barred from standing in the election, won convincingly by Prime Minister Nawaz Sharif -- the man he ousted from power in 1999 -- and was hit with a series of criminal cases dating back to his rule