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://www.owasp.org/index.php/Insecure_Temporary_File
https://nodesecurity.io/advisories/310
https://github.com/gvarsanyi/sync-exec/issues/17
https://cwe.mitre.org/data/definitions/377.html
Related Vulnerabilities
CVE-2021-44521 Vulnerability in maven package org.apache.cassandra:cassandra-all
CVE-2018-18854 Vulnerability in maven package io.spray:spray-json_2.10
CVE-2019-0199 Vulnerability in maven package org.apache.tomcat:tomcat-coyote
CVE-2016-10707 Vulnerability in npm package jquery
CVE-2022-25645 Vulnerability in maven package org.webjars.npm:dset