The mechanism of systemic osteoporosis caused by chronic infection is not completely clear, and there is a lack of reasonable interventions for this disease. In this study, heat-killed S. aureus (HKSA) was applied to simulate the inflammation caused by the typical clinical pathogen and to explore the mechanism of systemic bone loss caused by it. In this study, we found that the systemic application of HKSA caused bone loss in mice. Further exploration found that HKSA caused cellular senescence, telomere length shortening, and telomere dysfunction-induced foci (TIF) in limb bones. As a well-known telomerase activator, cycloastragenol (CAG) significantly alleviated HKSA-induced telomere erosion and bone loss. These results suggested that telomere erosion in bone marrow cells is a possible mechanism of HKSA-induced bone loss. CAG may protect against HKSA-induced bone loss by alleviating telomere erosion in bone marrow cells.