Any CEL codes? Could be catalytic converter or fuel injector nose seals. Not really knowing what the cause is, it would be hard to say whether it is safe to drive with a gas smell in the passenger cabin. Check for gas leaks below the car or in the engine bay.