Fortunately, you can just reach into your refrigerator for an affordable ingredient to restore your cast iron pan: ketchup.
It's a safe and kitchen-ready solution, free from the harsh chemicals in some commercial rust removers ... And please keep water out of the equation here unless you want to feed the rust monster.