Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code injection vulnerability of com.alibaba.flink.ml.cluster.node.runner.python.ProcessPythonRunner.checkPythonEnvironment #243

Open
ACE-777 opened this issue May 1, 2024 · 0 comments

Comments

@ACE-777
Copy link

ACE-777 commented May 1, 2024

Version:
Version from 1.5.0 until the latest(1.6.2).

Describe the bug:
Passing cmd with command of unix shell as parameter of com.alibaba.flink.ml.cluster.node.runner.python.ProcessPythonRunner.checkPythonEnvironment(java.lang.String) can inject malicious commands.
For example, the following code ProcessPythonRunner.checkPythonEnvironment("/usr/bin/gnome-calculator") will open Calculator.

To Reproduce:
Just execute ProcessPythonRunner.checkPythonEnvironment("/usr/bin/gnome-calculator"), it would reproduce it.

Urgency:
Due to this vulnerability, any malicious code can be executed, so the impact is large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant