In multivariable analysis, lower CD4 count (OR 0.85 per 10-cell increase, p = 0.012), hemoglobin ≤8.5 g/dL (OR 5.8, p = 0.049), and confirmed tuberculosis (OR 17.4, p = 0.001) were associated with M. tuberculosis bacteremia. This evidence concerns the gene CD4 and tuberculosis.