Home remedy: rub baking soda into the stained area, agitate and then dry vacuum it out. The baking soda will absorb the oil.
Professional method: dry cleaning solvent. Which... do an Internet search for dry cleaning solvent.
Unfortunately when it comes to carpet and upholstery the detailing...