We found a significant association between the coexistence of KRAS gene mutation and pancreatitis (OR = 14.18, 95% CI: 2.78–105.26, P < 0.01), as well as between KRAS gene mutation and pancreatic cysts (OR = 20.62, 95% CI: 7.56–60.30, P = 0.0026), with an increased risk of pancreatic cancer (Figure 2). Here, KRAS is linked to pancreatitis.