cryptoad commented on PR #48941: URL: https://github.com/apache/spark/pull/48941#issuecomment-2513234157
I think this approach is not ideal. The JVM allows intrinsically the execution of code if one is able to specify command line options. For example, as described in https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html, `-XX:OnError=string` or `-XX:OnOutOfMemoryError=string` will grant you command execution without having to add Shell metacharacters, or anything messing with the class path will allow easy code execution via static constructors. All of this to say that the options themselves are the issue, and no filtering of their content will likely prevent arbitrary code execution. My overall recommendation is to disallow said options in your deployment. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
