In order to solve the problems of poor effect, low distribution accuracy and high average delay in traditional methods, a secure distribution method of vehicle road collaborative data based on attribute-based encryption is proposed. The attribute-based encryption algorithm is used to initialize the global and authorization center, and receive the vehicle road cooperation data to be distributed. The decision tree algorithm is used to classify the vehicle road collaboration data, and the corresponding index is established for the vehicle road collaboration data. The user private key is generated according to the data classification results, and the ciphertext is sent to the fog node to realize the safe distribution of vehicle road collaborative data. The experimental results show that the proposed method has a good effect on the secure distribution of vehicle road cooperative data, which can effectively improve the distribution accuracy and reduce the average distribution delay.