The Pakistani foreign ministry said at least one former senior member of the militant group was among those released, the BBC reported.
Mansoor Dadullah, Said Wali, Abdul Manan, Karim Agha, Sher Afzal, Gul Muhammad and Muhammad Zai wre released, the ministry said in a statement.
Dadullah, who was the Taliban's military commander in four provinces of southern Afghanistan, was captured in February 2008 in a shootout with Pakistani security forces.
The militants were released in Pakistan, rather than being turned over to the custody of the Afghans, as Kabul wanted, a Pakistani foreign ministry spokesman said.
Pakistan has freed 26 Taliban detainees in the past year, the statement said.
The release came shortly after a visit by Afghanistan President Hamid Karzai that focused on possible Pakistani assistance in the Afghan peace process, Khaama Press reported.
Zalmai Rassoul, the Afghan foreign affairs minister, has said economic and security issues threatening Pakistan's stability could not be resolved until Pakistan supported anti-terrorism efforts.