Septicemia is primarily contracted through infections that spread in the bloodstream. These can originate from various sites, including the lungs (pneumonia), urinary tract (urinary tract infections), and abdominal area (gastrointestinal infections). In hospital settings, it can spread through invasive procedures or devices such as catheters and ventilators.