A developmental defect characterized by abnormal connection of one or more pulmonary veins to the superior or inferior vena cava, the right atrium, or the coronary sinus, resulting in a left-to-right shunt of oxygenated blood. The phenotype is Anomalous pulmonary venous return (HP_0010772).