The supply tram had derailed and the ee was in the process of rerailing the tram using a hydraulic jack to lift the arm. A pin in the jack bar bracket inadvertently came out of the jack resulting in injury to the ee's ring finger on his right hand/being caught between the jack bar and the equipment. The ee received 3 sutures to close the laceration.