It might be your cabin air filter. It prevents dust and other pollutants from entering the car. Over time, dirt and debris trap inside the cabin air filter, causing a foul odor.