CVE-2019-10767: Iobroker.js controller Arbitrary File Write Vulnerability
HIGHCVE-2019-10767 is a HIGH (CVSS 7.5) arbitrary file write vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Iobroker.js controller libraries in the npm ecosystem. The issue involves arbitrary file write in iobroker.js-controller. Remediation is available by upgrading affected packages to version 2.0.25.
CVE-2019-10767 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2019-10767
To remediate this vulnerability, upgrade all affected Iobroker.js controller 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 iobroker.js-controller@2.0.25
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls iobroker.js-controller
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-10767, inspect your project dependencies using npm:
npm ls iobroker.js-controller
Analyze the terminal output to locate any version of Iobroker.js controller in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.25), your application is affected.
Note: The npm ls iobroker.js-controller 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Iobroker.js controller, 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-2019-10767 Affected Iobroker.js controller Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
iobroker.js-controller
|
npm |
< 2.0.25
|
2.0.25
|
References
Frequently Asked Questions
What is CVE-2019-10767?
Which Iobroker.js controller versions are affected?
What version fixes CVE-2019-10767?
Is iobroker.js-controller affected?
What is the CVSS score of CVE-2019-10767?
What CWE is associated with CVE-2019-10767?
How can I check npm dependencies for CVE-2019-10767?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cmch-296j-wfvw",
"modified" : "2021-08-19T15:11:15Z",
"published" : "2019-12-02T18:06:14Z",
"aliases" : [ "CVE-2019-10767" ],
"summary" : "Arbitrary File Write in iobroker.js-controller",
"details" : "Versions of `iobroker.controller` prior to 2.0.25 are vulnerable to Path Traversal. The package fails to restrict access to folders outside of the intended `/adapter/<adapter-name>` folder, which may allow attackers to include arbitrary files in the system. An attacker would need to be authenticated to perform the attack but the package has authentication disabled by default.\n\n\n## Recommendation\n\nUpgrade to version 2.0.25 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "iobroker.js-controller"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.25"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10767"
}, {
"type" : "WEB",
"url" : "https://github.com/ioBroker/ioBroker.js-controller/commit/f6e292c6750a491a5000d0f851b2fede4f9e2fda"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-IOBROKERJSCONTROLLER-534881"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1419"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-11-27T03:26:55Z",
"nvd_published_at" : null
}
}