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

PM2 fails to start bat files in Windows because of Node.JS security updates #5838

Open
natcl opened this issue Jun 5, 2024 · 1 comment
Open

Comments

@natcl
Copy link
Contributor

natcl commented Jun 5, 2024

What's going wrong?

Node.JS has fixed a security vulnerability in Windows which breaks starting bat or cmd files in pm2 (see CVE-2024-27980).

This results in a EINVAL error when trying to start the process.

The fix is to add shell: true to the options here:

var options = {

Le me know if you need more info !

Thanks !

@natcl
Copy link
Contributor Author

natcl commented Jun 5, 2024

Update: we tested the above fix and it works, however it seems to fail if the bat file is located in a path with a space in the directory name, not sure if shell: true has something to do with this or not.

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