The code you specify indicates that you did not sanitize much on the input data. Therefore, you probably have similar problems in other parts of the software.
In addition, even if you do not run the csv file in your application, you can enter PHP code into it.
So, if there is another hole in the application that incorrectly checks the input data and can be used to include files on the server and then include this csv file, remote code execution is possible.
hakre source
share