ghsa-38h8-x697-gh8q
Vulnerability from github
Published
2018-11-09 17:45
Modified
2023-09-07 20:13
Severity ?
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()
.
{ "affected": [ { "package": { "ecosystem": "npm", "name": "sync-exec" }, "ranges": [ { "events": [ { "introduced": "0" }, { "last_affected": "0.6.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2017-16024" ], "database_specific": { "cwe_ids": [ "CWE-377" ], "github_reviewed": true, "github_reviewed_at": "2020-06-16T20:54:36Z", "nvd_published_at": null, "severity": "MODERATE" }, "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.\n\n\n## Recommendation\n\nThere 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. \n\nThe 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()`.", "id": "GHSA-38h8-x697-gh8q", "modified": "2023-09-07T20:13:49Z", "published": "2018-11-09T17:45:30Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16024" }, { "type": "WEB", "url": "https://github.com/gvarsanyi/sync-exec/issues/17" }, { "type": "WEB", "url": "https://cwe.mitre.org/data/definitions/377.html" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-38h8-x697-gh8q" }, { "type": "WEB", "url": "https://www.npmjs.com/advisories/310" }, { "type": "WEB", "url": "https://www.owasp.org/index.php/Insecure_Temporary_File" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Tmp files readable by other users in sync-exec" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.