A judge of the circuit court for a county, of the Appellate Court of Maryland, or of the Supreme Court of Maryland has the power to grant the writ of habeas corpus and exercise jurisdiction in all matters pertaining to habeas corpus.
Md. Code, CJ § 3-701