Gas fumes

I have a 2002 subaru legacy and this winter everytime it gets below 40 degrees there is a very strong gas smell inside the car again only when its gotten below40

There was a recall of some Subaru models of that vintage for defective clamps on the fuel lines, and these cars exhibited the same symptom–in cold temperatures–that yours is displaying. Phone the service dept of the closest Subaru dealership, give them your VIN, and ask if there are any open recalls for your car. If are no open recalls, ask if there is a Service Campaign for your model regarding this problem.