you probably wouldn't want to ship that in the final image, but then again, if someone is capable of fiddling with the image, nothing stops them from writing these three lines of code, compile and add the binary to the image.
So I don't think it's that bad.