The reason why Soda cans explode in Extreme~ish temperatures is because the cold and hot temperatures causes pressure to buildup inside the cans of soda and then it explodes.
The heat causes the dissolved carbon dioxide gas in the soda cans to expand and build up pressure inside the can and because the can cannot withstand the extreme pressure it leads to the can rupturing.
Cans of soda can explode in both cold temperatures as well as hot temperatures.
When cans of soda are exposed to high heat, the carbon dioxide in the can of soda, expands and creates pressure which can cause the soda can to burst open and explode.
The can of soda exploding in a hot car is more likely to occur if the can of soda is left in a hot car or other hot place where temperatures rise significantly or the can of soda is left near the heater vent of a vehicle.
Cans of soda will explode in a cold car if the temperature in the car gets cold enough.
If you leave sealed cans of soda in your car and the temperatures get below freezing the soda in the can will freeze and pressure will buildup on the can as the frozen soda expands.
As the pressure increases inside the can due to the frozen soda the frozen soda in the can will eventually burst and send soda all over your car.
I had this happen to me a few times when I left a can of soda in the car before and it get below freezing.
The next morning I went out and the top of the soda can was blown off and soda had gotten all over my dash and seats and even the ceiling part of my car.
It took some good cleaning to fully get the soda out.
Try to remember to take any sealed soda cans or other sealed cans inside during freezing weather.
Just like frozen pipes can burst when it gets cold, the frozen soda cans can also burst when frozen.
The soda expands when it freezes and the expansion can be forceful.
Soda also contains carbon dioxide, which is a gas and when the soda freezes, the pressure from the expanding water can force the gas to dissolve in the ice and increase the pressure within the soda can.
And cans are often strong enough to withstand some moderate pressure, but the force of the freezing soda expansion can overcome this, especially in really cold temperatures and cause it to burst.
Soda with sugar freezes at around 30 F and diet soda and water freeze at 32 F.