This paper investigates the joint impact of channel estimation errors (CEEs) and hardware impairments (HIs) on the performance of a cognitive satellite-terrestrial relay network (CSTRN), where the terrestrial and satellite links are considered following Rayleigh fading and shadowed Rician (SR) fading distributions, respectively. Besides, the terrestrial relay is working in half-duplex decode-and-forward (DF) mode. By employing a general and practical model to account for both the CEEs and HIs at each link, the end-to-end signal-to-noise-plus-distortion-and-error ratio (SNDER) is first obtained for the CSTRN. Then, closed-form expressions for the outage probability (OP) and throughput of the CSTRN are obtained, which allows us to demonstrate the aggregate impact of CEEs and HIs. In order to gain insightful findings, we further elaborate on the asymptotic OP and throughput at the high signal-to-noise-ratio (SNR) condition and quantitatively determine the fundamental performance ceiling. Finally, Monte Carlo (MC) computer simulations are provided to verify the correctness of the analytical results. Besides, with representative numerical analysis’s help, interesting findings are presented.