There are probably over 220 billion lines of COBOL that go into the software that runs globally today. That represents about 80% of the world's entire base of actively used code. That many lines of code almost certainly contain lots of security vulnerabilities.
It's much easier to adapt the format of the data to COBOL instead of forcing a legacy system to handle data with a different format. Read more