The vulnerability is in the EFI firmware—which is exclusive to AMD64 computers—Intel-based Macs.
If the iMac is PowerPC-based, then you are safe (but a bit dated).
Core2 duo, as I recall . . . I upgraded the RAM to the max of 4G a good while ago.