The latest revelation comes after Afghan security forces arrested several young boys during clean-up operations at militant camps in Maidan Wardak Province.
Sources say the boys have been beaten, drugged, and sexually assaulted by Taliban commanders.
Although one has to consider the source (re. the veracity of the claims), it's not uncommon for Afghan men to have sex with teenage boys. In fact they have a name for it: Bacha Bazi. So this is not outside the realm of possibility.
So, homosexuality in Islam can result in death, but pederasty is totally cool.
More here, and here.