Lung malignant tumors are a type of cancer with high incidence and mortality rates worldwide. Non-small cell lung cancer (NSCLC) accounts for over 80% of all lung malignant tumors, and most patients are diagnosed at advanced stages, leading to poor prognosis. Over the past decades, various oncogenic driver alterations associated with lung cancer have been identified, each of which can potentially serve as a therapeutic target. Rat sarcoma (RAS) genes are the most commonly mutated oncogenes in human cancers, with Kirsten rat sarcoma (KRAS) being the most common subtype. The role of KRAS oncogene in NSCLC is still not fully understood, and its impact on prognosis remains controversial. Despite the significant advancements in targeted therapy and immune checkpoint inhibitors (ICI) that have transformed the treatment landscape of advanced NSCLC in recent years, targeting KRAS (both directly and indirectly) remains challenging and is still under intensive research. In recent years, significant progress has been made in the development of targeted drugs targeting the NSCLC KRASG12C mutant subtype. However, research progress on target drugs for the more common KRASG12D subtype has been slow, and currently, no specific drugs have been approved for clinical use, and many questions remain to be answered, such as the mechanisms of resistance in this subtype of NSCLC, how to better utilize combination strategies with multiple treatment modalities, and whether KRASG12D inhibitors offer substantial efficacy in the treatment of advanced NSCLC patients.