Malefic planets are Sun, Rahu, Ketu, Saturn and Mars. Paap Kartari Yoga happens when one house of a horoscope is surrounded by malefic planets on either side. So any house that comes in between these planets, has to bear the burden of their negative influences.
To make it more clea...