By taking the oxidation state of the terminal oxygen atoms as -2, and oxidation state of the carbon atoms adjacent to these oxygen atoms as +2, we are left with the oxidation state of the middle carbon atom as 0.
However I researched a bit into the structure of $\ce{C3O2}$ and found out that it is easy to bend (and can be non-planar?), would this affect the oxidation state of the central carbon atom or would it remain as 0.
My thought process initially:
- The oxygen atoms being more electronegative will pull the electron clouds towards themselves leaving the adjacent carbon atoms with a positive charge.
- I then thought that this positive charge will be distributed among the carbon atoms leaving the middle carbon atom with a non zero oxidation state. (On reading the comment by Poutnik, I think this thought is wrong since it is not taking total bond breaking operation into account)