The oxidation number of carbon changes from -1 to +4.

The oxidation number of oxygen changes from 0 to -2.

Carbon is oxidized.

Oxygen is reduced.

Electrons are transferred from carbon to oxygen.