GitHub Advisory Database
GHSA-c6rq-rjc2-86v2
Time-of-check Time-of-use (TOCTOU) Race Condition in chownr
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | chownr | All versions before 1.1.0 (fixed in 1.1.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-18869
- https://github.com/isaacs/chownr/issues/14
- https://github.com/isaacs/chownr/commit/36a93e3f0a220062c47b237cf6ab6d5f55cd79c9
- https://github.com/isaacs/chownr/commit/a631d841022880e5c8d694408a7e96d6d576d0ce
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863985
- https://bugzilla.redhat.com/show_bug.cgi?id=1611614
- https://snyk.io/vuln/npm:chownr:20180731