{"id":"CVE-2016-10538","aliases":["CLSA-2026-1774225194","CLSA-2026-1774225195","CLSA-2026-1789900487","EUVD-2019-0240","GHSA-6cpc-mj5c-m9rq","UBUNTU-CVE-2016-10538"],"status":"published","title":"Arbitrary File Write in cli","description":"The package `node-cli` before 1.0.0 insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.","severity":{"version":"3.0","score":3.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","level":"low","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00977,"percentile":0.62347,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22","CWE-362"],"published":"2018-05-31T20:00:00Z","modified":"2026-10-30T19:46:02Z","fixes":[{"ecosystem":"npm","package":"cli","fixed_in":["1.0.0"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"cli","fixed_in":["0.6.6-tuxcare.1","0.4.3-tuxcare.1","0.4.5-tuxcare.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.6-tuxcare.0"},{"fixed":"0.6.6-tuxcare.1"}]}],"versions":["0.6.6"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.3-tuxcare.0"},{"fixed":"0.4.3-tuxcare.1"}]}],"versions":["0.4.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.5-tuxcare.0"},{"fixed":"0.4.5-tuxcare.1"}]}],"versions":["0.4.5"]},{"source":"osv","ecosystem":"npm","package":"cli","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"node-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.4~20120516-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"node-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.4~20120516-1"]}],"products":[{"vendor":"cli_project","product":"cli"},{"vendor":"debian","product":"debian_linux"},{"vendor":"hackerone","product":"cli node module"}],"references":[{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809252","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/node-js-libs/cli/issues/81","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"https://nodesecurity.io/advisories/95","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10538","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6cpc-mj5c-m9rq","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/95","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-10538","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-10538","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-10538","description":"The package `node-cli` before 1.0.0 insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-17T01:36:47.221Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:33:31.764001Z"}],"euvd":[{"id":"EUVD-2019-0240","description":"The package `node-cli` before 1.0.0 insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-17T01:36:47Z","updated_at":"2026-11-03T00:28:47.904483Z"}],"ghsa":[{"id":"GHSA-6cpc-mj5c-m9rq","title":"Arbitrary File Write in cli","description":"Affected versions of `cli` use predictable temporary file names. If an attacker can create a symbolic link at the location of one of these temporarly file names, the attacker can arbitrarily write to any file that the user which owns the `cli` process has permission to write to.\n\n\n## Proof of Concept\n\nBy creating Symbolic Links at the following locations, the target of the link can be written to.\n```\nlock_file = '/tmp/' + cli.app + '.pid',\nlog_file = '/tmp/' + cli.app + '.log';\n```\n\n\n## Recommendation\n\nUpdate to version 1.0.0 or later.","status":"published","published":"2019-02-18T23:40:03Z","modified":"2023-01-09T05:02:43Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:03.768255Z"}],"nvd":[{"id":"CVE-2016-10538","description":"The package `node-cli` before 1.0.0 insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.","status":"published","published":"2018-05-31T20:29:01.363Z","modified":"2026-06-17T00:39:54.01Z","cvss":[{"version":"3.0","score":3.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","level":"low","assessor":"primary"},{"version":"2.0","score":4.9,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22","CWE-362"],"updated_at":"2026-11-02T14:03:39.176887Z"}],"osv":[{"id":"CVE-2016-10538","description":"The package `node-cli` before 1.0.0 insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.","status":"published","published":"2018-05-31T20:29:01.363Z","modified":"2026-10-22T02:46:20.02087349Z","cvss":[{"version":"3.0","score":3.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T15:44:01.531338Z"},{"id":"UBUNTU-CVE-2016-10538","description":"The package `node-cli` before 1.0.0 insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.","status":"published","published":"2018-05-31T20:29:00Z","modified":"2025-10-24T04:46:00Z","cvss":[{"version":"3.0","score":3.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T15:54:11.492576Z"},{"id":"CLSA-2026-1774225194","title":"TuxCare security update for cli (1 CVE)","description":"TuxCare rebuilt cli to address 1 CVE. Fixed in 0.6.6-tuxcare.1.","status":"published","published":"2026-08-04T14:52:14Z","modified":"2026-10-15T09:47:48.152348836Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774225195","title":"TuxCare security update for cli (1 CVE)","description":"TuxCare rebuilt cli to address 1 CVE. Fixed in 0.4.3-tuxcare.1.","status":"published","published":"2026-08-04T14:52:14Z","modified":"2026-10-15T09:47:00.113594566Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1789900487","title":"TuxCare security update for cli (1 CVE)","description":"TuxCare rebuilt cli to address 1 CVE. Fixed in 0.4.5-tuxcare.1.","status":"published","published":"2026-09-20T10:34:47Z","modified":"2026-10-30T19:46:02.855859708Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"GHSA-6cpc-mj5c-m9rq","title":"Arbitrary File Write in cli","description":"Affected versions of `cli` use predictable temporary file names. If an attacker can create a symbolic link at the location of one of these temporarly file names, the attacker can arbitrarily write to any file that the user which owns the `cli` process has permission to write to.\n\n\n## Proof of Concept\n\nBy creating Symbolic Links at the following locations, the target of the link can be written to.\n```\nlock_file = '/tmp/' + cli.app + '.pid',\nlog_file = '/tmp/' + cli.app + '.log';\n```\n\n\n## Recommendation\n\nUpdate to version 1.0.0 or later.","status":"published","published":"2019-02-18T23:40:03Z","modified":"2023-11-08T03:58:11.333391Z","cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:39.618611Z"}]}}
