The fire happened near the Unicorn Inn at Hampton Loade, Highley, near Bridgnorth.
Two fire engines were sent. Nobody was hurt.
A Shropshire Fire and Rescue Service spokesman said: "At 3.15pm on Tuesday, 7 September, we received a call reporting a fire classified as fire in open in Highley.
"Fire involving 300m of railway embankment. Two fire appliances were mobilised from Cleobury Mortimer."
Crews used beaters, a hose reel jet and a thermal imaging camera to tackle the fire.