We study the quantization of a free scalar field when the background metric satisfies Einstein's equations and develops gravitational shock waves.