The LOAD DATA statement can load a file located on the server host, or, if the LOCAL keyword is specified, on the client host. There are two potential security issues with the LOCAL version of LOAD DATA:

https://dev.mysql.com/doc/refman/8.0/en/load-data-local.html