Nonlinear relationship analysis revealed that age (particularly > 66 years) and moderate inflammatory status (CRP 20–30 mg/L) are key features of increased squamous cell lung cancer risk, providing reference for identifying high-risk RA patients. Here, CRP is linked to rheumatoid arthritis.