Path traversal attack is possible and write outside of the intended directory and may access sensitive information. If a file name is specified that already exists on the file system, then the original file will be overwritten.
https://www.cisa.gov/news-events/ics-advisories/icsa-24-074-12