When the lithium-ion battery is overcharged, the electrolyte oxidizes. This generates many gases such as carbon dioxide, carbon monoxide, and methane. Carbon dioxide at the cathode increases battery temperature.