Certain medical conditions and medications can cause edema, including:  Cirrhosis. Congestive heart failure. Kidney damage. Problems with the lymphatic system. Weak or damaged veins in the leg.