Ecological security is an important guarantee of human security and survival, closely related to sustainable development. However, the ecological security evaluation and driving force analysis of oases in arid areas is still insufficient. Ejina Oasis’s ecological security has experienced significant shifts following the centralized management of the Heihe River’s water allocation. Understanding the shifts in ecological security in the Ejina region is paramount for the oasis’s long-term sustainability. This paper employed the Pressure–State–Response (P–S–R) model to select socioeconomic and ecological indicators, establish a comprehensive ecological security evaluation index system, and then analyze the evolving ecological security in the region. Additionally, this paper explored the relationship between changes in the water area, oasis area, and ecological security by using the gray correlation degree to quantify the influence of Land Use Changes (LUCCs) on the overall ecological security. From 2000 to 2012, the ecological security index of Ejina Oasis remained relatively stable at around 0.4. However, a noticeable upward trend in the ecological security index emerged from 2012 to 2020, indicating a shift toward improved ecological security in the region. Critical determinants of this change included the habitat degradation degree, total population, habitat quality, carbon stock, fractional vegetation cover (FVC), the proportion of tertiary industry, and the volume of water discharged from Wolf Heart Mountain. The degree of habitat degradation, fractional vegetation cover (FVC), and the proportion of tertiary industry had the greatest impact on the change in ecological security. The pressure index was dominant in influencing ecological security before 2012 but gradually transitioned to the state index. This study offers a valuable framework for assessing the intricate relationship between LUCCs and ecological security in water-scarce, arid-region oases.