The track workers had been walking through Bookham Tunnel at 11:42 BST on 29 April last year, when the passenger train passed at 33mph (53km/h).

A report on Monday, external said the distance between the tunnel wall and the nearest running rail where the workers were walking was about 1.6m (5.2ft), but the available space between the tunnel wall and the passing train was between 1m and 1.15m.

Rules state that for line speeds below 100mph, a position of safety should be at least 1.25m from the nearest running rail.

Investigators said a “safe work pack” detailing safety arrangements incorrectly contained line blockage arrangements for nearby Mickleham Tunnel rather than where the team was working.

They said the error was introduced at the planning stage and went unnoticed, despite checks.

The RAIB highlighted the lack of a specific process for managing the transfer of information between systems and found steps were not routinely carried out or not carried out effectively.

Hall said investigators also identified learning points for workers, adding it showed “how safety is now heavily dependent on every worker having an accurate understanding” of line blockages and safe working.

Chris Cornish, regional health, safety and environment director for Network Rail, said the organisation fully supported the RAIB and recognised the findings.

He said: “While no one was injured, this was a serious near miss and we are committed to learning the lessons to reduce the risk of this happening again.

“We are also continuing our national work to improve track worker safety, including through a programme focused on clearer planning and the use of technology to better protect colleagues working on the railway.”

Follow BBC Surrey on Facebook, external, X, external, and on Instagram, external and listen to BBC Radio Surrey on Sounds. Send your story ideas to southeasttoday@bbc.co.uk , externalor WhatsApp us on 08081 002250.