Coughing up blood can indicate problems with your blood vessels, serious infections, and even cancer. Consult a specialist immediately in such cases.