25 V rated caps are definitely not enough for a 24 volts nominal system, as the actual voltage can be quite a bit higher (more likely something like 28 volts). And, for critical automotive systems, there is a requirement for tolerance of so-called load dump, which can generate transients of 200 volts (during the test). For normal use, 50 volts rated voltage would be ok for a conservative design.
Regards,
Janne