CVE-2017-18869 json
Time-of-check Time-of-use (TOCTOU) Race Condition in chownr
published 2020-06-15 6 y ago modified 2026-06-17 4 mo ago also GHSA-c6rq-rjc2-86v2 , EUVD-2022-0956
- cvss
- 2.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 26%
- public exploits
- 0
- none known
Summary
A TOCTOU issue in the chownr package before 1.1.0 for Node.js 10.10 could allow a local attacker to trick it into descending into unintended directories via symlink attacks.
Patch / fix
- npm chownr 1.1.0
- chownr_project chownr 1.1.0
- node-chownr Debian 14, Debian 13, Debian 12 1.1.1-1
debian advisories DEBIAN-CVE-2017-18869
- rh-nodejs8-nodejs RHEL 3 SOFTWARE_COLLECTIONS 8.17.0-2.el7
- rh-nodejs8-npm RHEL 3 SOFTWARE_COLLECTIONS 6.13.4-8.17.0.2.el7
red hat advisories RHSA-2020:2625
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-18869 updated cvss 7.7
nodejs-chownr: TOCTOU vulnerability in `chownr` function in chownr.js
-
Red Hat Mobile Application Platform 4 nodejs-chownr Red Hat Software Collections rh-nodejs6-nodejs-chownraffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs8-nodejs 8.17.0-2.el7, rh-nodejs8-npm 6.13.4-8.17.0.2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-nodejs8-nodejs 8.17.0-2.el7, rh-nodejs8-npm 6.13.4-8.17.0.2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-nodejs8-nodejs 8.17.0-2.el7, rh-nodejs8-npm 6.13.4-8.17.0.2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs8-nodejs 8.17.0-2.el7, rh-nodejs8-npm 6.13.4-8.17.0.2.el7fixed: vendor fix RHSA-2020:2625
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/npm:chownr:20180731 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 1.9 | AV:L/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | chownr | <1.1.0 |
1.1.0 |
Classification
- Weakness
-
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
-
github.com
/isaacs/chownr/commit/36a93e3f0a220062c47b237cf6ab6d5f55cd79c9
web
-
github.com
/isaacs/chownr/commit/a631d841022880e5c8d694408a7e96d6d576d0ce
web
-
snyk.io
/vuln/npm:chownr:20180731
web, exploit, third-party-advisory
-
github.com
/isaacs/chownr/issues/14
web, third-party-advisory
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=863985
web, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1611614
web, permissions-required
-
nvd.nist.gov
/vuln/detail/CVE-2017-18869
advisory
Sources
- CVE List CVE-2017-18869
- GitHub Advisory GHSA-c6rq-rjc2-86v2
- NVD CVE-2017-18869
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.