SRD Talk:Ray of Enfeeblement
From D&D Wiki
Does this spell affect undead? RAW, it seems to - undead are immune to physical ability score DAMAGE, but this spell just imposes a "penalty". It seems, though, that as a negative energy effect, it would have no effect (or even the opposite effect, like Cure and Inflict spells).