Nutritional risk (OR=2.888) and HbA1c showed positive associations (P<0.001), while duration of HIV infection, albumin, and CD4+ T cell counts demonstrated negative associations with infection risk (P<0.05). Here, CD4 is linked to HIV infectious disease.