The result of pathological changes in the hard tissue of a tooth caused by carious lesions, mechanical factors, or trauma, which render the pulp susceptible to bacterial invasion from the external environment.