The child had been walking along the Riverfront Park Trail in the 500 block of South Front Street in Harrisburg, when "they heard a shot and realized that they had been hit," police say.
Police learned of the shooting when the child arrived at the hospital around 8:45 a.m.
The child's age has not been released, but police believe they will not succumb to their injuries.
The investigation is ongoing.
Anyone with information can call Harrisburg police at 717-558-6900.
Click here to follow Daily Voice Lower Paxton and receive free news updates.