Vulnerabilities in pkg:npm/chownr
PACKAGECVE-2017-18869 is a LOW (CVSS 2.5) time-of-check time-of-use (toctou) race condition vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Chownr libraries in the npm ecosystem. The issue involves time-of-check time-of-use (toctou) race condition in chownr. Remediation is available by upgrading affected packages to version 1.1.0.
pkg:npm/chownr
Vulnerability advisories affecting package pkg:npm/chownr. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-c6rq-rjc2-86v2 | CVE-2017-18869 | LOW | Time-of-check Time-of-use (TOCTOU) Race Condition in chownr |
CVE-2017-18869 at a Glance
Security Impact
CVSS: 2.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2017-18869
To remediate this vulnerability, upgrade all affected Chownr dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install chownr@1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls chownr
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2017-18869, inspect your project dependencies using npm:
npm ls chownr
Analyze the terminal output to locate any version of Chownr in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The npm ls chownr command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. In Chownr, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-18869 Affected Chownr Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
chownr
|
npm |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2017-18869?
Which Chownr versions are affected?
What version fixes CVE-2017-18869?
Is chownr affected?
What is the CVSS score of CVE-2017-18869?
What CWE is associated with CVE-2017-18869?
How can I check npm dependencies for CVE-2017-18869?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c6rq-rjc2-86v2",
"modified" : "2021-05-12T20:23:29Z",
"published" : "2022-02-10T23:33:39Z",
"aliases" : [ "CVE-2017-18869" ],
"summary" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "chownr"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-18869"
}, {
"type" : "WEB",
"url" : "https://github.com/isaacs/chownr/issues/14"
}, {
"type" : "WEB",
"url" : "https://github.com/isaacs/chownr/commit/36a93e3f0a220062c47b237cf6ab6d5f55cd79c9"
}, {
"type" : "WEB",
"url" : "https://github.com/isaacs/chownr/commit/a631d841022880e5c8d694408a7e96d6d576d0ce"
}, {
"type" : "WEB",
"url" : "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863985"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1611614"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/npm:chownr:20180731"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-367" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-12T20:23:29Z",
"nvd_published_at" : "2020-06-15T15:15:00Z"
}
}