Can you hack a train?

The modern rail system is basically a network of hundreds of different, but interconnected computers. Are these systems flawless security-wise?