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

Node security patch causes EINVAL on Windows (CVE-2024-27980) #65

Open
nbolton opened this issue May 15, 2024 · 0 comments
Open

Node security patch causes EINVAL on Windows (CVE-2024-27980) #65

nbolton opened this issue May 15, 2024 · 0 comments

Comments

@nbolton
Copy link

nbolton commented May 15, 2024

What version of pkg are you using?

5.11.5

What version of Node.js are you using?

v18.20.2

What operating system are you using?

Windows

What CPU architecture are you using?

x86_64

What Node versions, OSs and CPU architectures are you building for?

node18

Describe the Bug

Since Node v18.20.2, CVE-2024-27980 (April 10, 2024) prevents the running of .cmd and .bat by default. It seems that pkg runs either a .cmd or .bat on Windows.

Workarounds:

  • Use Node v18.20.1
  • Pass { shell: true } to spawn/spawnSync
  • Pass --security-revert=CVE-2024-27980 (not advised)

Expected Behavior

pkg works on Windows as it did in v18.20.1.

To Reproduce

  1. Use Node v18.20.2 on Windows
  2. Use pkg
@nbolton nbolton changed the title Node security patch causes EINVAL on Windows - CVE-2024-27980 (April 10, 2024) Node security patch causes EINVAL on Windows (CVE-2024-27980) May 15, 2024
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