Memory impairment is a frequent complaint in insomniacs; however, it is not consistently demonstrated. It is unknown whether memory impairment in insomniacs involves neuroendocrine dysfunction. The participants in this study were selected from the clinical setting and included 21 patients with chronic insomnia disorder (CID), 25 patients with insomnia and comorbid depressive disorder (CDD), and 20 control participants without insomnia. We evaluated spatial working and reference memory, object working and reference memory, and object recognition memory using the Nine Box Maze Test. We also evaluated serum neuroendocrine hormone levels. Compared to the controls, the CID patients made significantly more errors in spatial working and object recognition memory (p < .05), whereas the CDD patients performed poorly in all the assessed memory types (p < .05). In addition, the CID patients had higher levels (mean difference [95% CI]) of corticotrophin-releasing hormone, cortisol (31.98 [23.97, 39.98] μg/l), total triiodothyronine (667.58 [505.71, 829.45] μg/l), and total thyroxine (41.49 [33.23, 49.74] μg/l) (p < .05), and lower levels of thyrotropin-releasing hormone (-35.93 [-38.83, -33.02] ng/l), gonadotropin-releasing hormone (-4.50 [-5.02, -3.98] ng/l) (p < .05), and adrenocorticotropic hormone compared to the CDD patients. After controlling for confounding variables, the partial correlation analysis revealed that the levels of cortisol positively correlated with the errors in object working memory (r = .534, p = .033) and negatively correlated with the errors in object recognition memory (r = -.659, p = .006) in the CID patients. The results suggest that the CID patients had selective memory impairment, which may be mediated by increased cortisol levels.