Overproduction or underproduction of hormones released by the pituitary gland, often caused by an injury or tumor.