Lis pendens
Also called doctrine of lis pendens
The rule that property involved in a pending court case cannot be transferred in a way that defeats the outcome. A buyer during the case is bound by the final decision.
Section 52, Transfer of Property Act, 1882
Section 52 of the Transfer of Property Act, 1882 applies the rule to suits in which a right to immovable property is directly and specifically in question. A transfer made during the case is not void, but the buyer takes the property subject to whatever the court decides.
In Maharashtra the rule binds a buyer only once a notice of the pending case is registered with the sub-registrar, so a title search there should look for such notices. In any state, also search court records and take a written declaration from the seller that no case is pending.