Description
The sync-exec module is used to simulate child_process.execSync in node versions <0.11.9. Sync-exec uses tmp directories as a buffer before returning values. Other users on the server have read access to the tmp directory, possibly allowing an attacker on the server to obtain confidential information from the buffer/tmp file, while it exists.
Remediation
References
https://cwe.mitre.org/data/definitions/377.html
https://github.com/gvarsanyi/sync-exec/issues/17
https://nodesecurity.io/advisories/310
https://www.owasp.org/index.php/Insecure_Temporary_File
Related Vulnerabilities
CVE-2023-40346 Vulnerability in maven package io.jenkins.plugins:shortcut-job
CVE-2019-10782 Vulnerability in maven package com.puppycrawl.tools:checkstyle
CVE-2017-2598 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2020-4077 Vulnerability in npm package electron
CVE-2023-33202 Vulnerability in maven package org.bouncycastle:bcprov-jdk15on