The conflict could push up oil and food prices at a time when the cost of living is rising.