Exploring the diffusion characteristics of crude oil leaked from buried pipelines in heterogeneous porous media is of great significance for accurately predicting the location of crude oil leakage in buried pipelines,emergency repair and treatment,and reducing the harm of oil pipeline leakage accidents.A leakage model for buried oil pipelines in heterogeneous porous media was established,and numerical simulations of multiphase flow in porous media under specific variable conditions were carried out based on computational fluid dynamics methods.The influence of different backfill soil porosity and leakage rate on the diffusion characteristics of crude oil,as well as the variation law of temperature field in heterogeneous porous media after crude oil diffusion were studied.The research results indicated that regardless of the porosity of backfill soil,the process of crude oil leakage included acceleration stage,transition stage,and stable stage.When the volume flow rate of leaked crude oil was constant,the smaller the porosity of backfill soil,the faster the leakage rate,and the faster the diffusion rate,the higher its diffusion efficiency in the air,and vice versa.The temperature field of porous soil media after leakage was not sensitive to changes in the porosity of backfill soil,and the leakage rate was the main factor that dominates the temperature field changes.