Advisory

GHSA-38h8-x697-gh8q

Also known as: CVE-2017-16024

Summary

Tmp files readable by other users in sync-exec

Details

Affected versions of sync-exec use files located in /tmp/ to buffer command results before returning values. As /tmp/ is almost always set with world readable permissions, this may allow low privilege users on the system to read the results of commands run via sync-exec under a higher privilege user.

Recommendation

There is currently no direct patch for sync-exec, as the child_process.execSync function provided in Node.js v0.12.0 and later provides the same functionality natively.

The best mitigation currently is to update to Node.js v0.12.0 or later, and migrate all uses of sync-exec to child_process.execSync().

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-11-09 17:45 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

sync-exec

npm · All systems

Affected

  • introduced 0, last affected 0.6.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences