Hagerstown Police Sgt. Curt Wood said late Thursday that one of the men was found under a train. He said the other man was found to the side of the train and did not appear to have life-threatening injuries.
Wood said the men were "semiconscious."
"They were groaning and moving ... and breathing. That's the good thing," Wood said.
The identities of the men were not available late Thursday.
Hagerstown Fire Department Battalion Chief Randy Myers said one of the men "definitely had a fractured femur."
The incident was the second report of a pedestrian being struck by a train Thursday.
Police said in a news release that Robert Lee Kauffman Jr., 44, of no fixed address, was struck by a Norfolk Southern train traveling south on a line on the overpass in the 300 block of West Church Street about 9:15 a.m. An engineer saw the man and sounded his horn about a dozen times before Kauffman was struck by the moving locomotive, according to police.
Kauffman, who had minor lacerations to his face, hands and back, was taken to Washington County Hospital, where he refused treatment, police said.
Kauffman was charged with trespassing on railroad property, police said. A Washington County Detention Center spokeswoman said he was being held there on $8,000 bond late Thursday.