Errors in metabolic processing of steroids resulting from inborn genetic mutations that are inherited or acquired in utero.