Women can be appointed cardinals now - apparently it's not required that a cardinal be a priest. Sounds odd doesn't it? But there you are.
In fact, I believe that it would in theory be possible for a woman to be pope! All that is needed is to abolish the need for a pope to be Bishop of Rome. (The Avignon Popes weren't).