GHSA-38h8-x697-gh8q

Suggest an improvement
Source
https://github.com/advisories/GHSA-38h8-x697-gh8q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-38h8-x697-gh8q/GHSA-38h8-x697-gh8q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-38h8-x697-gh8q
Aliases
Published
2018-11-09T17:45:30Z
Modified
2023-11-08T03:59:00.317387Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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().

Database specific
{
    "nvd_published_at": null,
    "severity": "MODERATE",
    "github_reviewed_at": "2020-06-16T20:54:36Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-377"
    ]
}
References

Affected packages

npm / sync-exec

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.6.2