Python: https://docs.python.org/3/library/pickle.html Ruby: CVE-2013-0156
I'm sure there is more.
If you're using a serialized format, you get serialized risks.