Vulnerabilities in pkg:npm/iobroker.admin

PACKAGE
Advisory Identifier: GHSA-54xj-q58h-9x57
Advisory Summary

CVE-2019-10765 is a CRITICAL (CVSS 9.8) arbitrary file write vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Iobroker.admin libraries in the npm ecosystem. The issue involves arbitrary file write in iobroker.admin. Remediation is available by upgrading affected packages to version 3.6.12.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/iobroker.admin

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/iobroker.admin. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-54xj-q58h-9x57 CVE-2019-10765 CRITICAL Arbitrary File Write in iobroker.admin

CVE-2019-10765 at a Glance

CVE Identifier CVE-2019-10765
GHSA Identifier GHSA-54xj-q58h-9x57
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Iobroker.admin
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-10765

To remediate this vulnerability, upgrade all affected Iobroker.admin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

iobroker.admin fixed: 3.6.12
npm install iobroker.admin@3.6.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls iobroker.admin

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2019-10765, inspect your project dependencies using npm:

npm ls iobroker.admin

Analyze the terminal output to locate any version of Iobroker.admin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.12), your application is affected.

Note: The npm ls iobroker.admin 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.admin, 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

Versions of `iobroker.admin` prior to 3.6.12 are vulnerable to Path Traversal. The package fails to restrict access to folders outside of the intended folder in the `/log/` route, 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. ## Recommendation Upgrade to version 3.6.12 or later.

CVE-2019-10765 Affected Iobroker.admin Versions

1 component(s)
Fixed Versions:
3.6.12
Product / Package Ecosystem Affected Versions Fixed Version
iobroker.admin
npm
< 3.6.12
3.6.12

References

Frequently Asked Questions

What is CVE-2019-10765?
CVE-2019-10765 is a security vulnerability in Iobroker.admin involving Arbitrary File Write in iobroker.admin under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Iobroker.admin versions are affected?
Affected versions include releases prior to 3.6.12 across affected packages: iobroker.admin.
What version fixes CVE-2019-10765?
Upgrading to 3.6.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is iobroker.admin affected?
Yes, iobroker.admin is affected in releases prior to 3.6.12. Upgrade your dependency to 3.6.12 or later.
What is the CVSS score of CVE-2019-10765?
CVE-2019-10765 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-10765?
CVE-2019-10765 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check npm dependencies for CVE-2019-10765?
Run the dependency tree command: 'npm ls iobroker.admin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-54xj-q58h-9x57",
  "modified" : "2021-10-01T20:14:10Z",
  "published" : "2020-09-04T15:24:56Z",
  "aliases" : [ "CVE-2019-10765" ],
  "summary" : "Arbitrary File Write in iobroker.admin",
  "details" : "Versions of `iobroker.admin` prior to 3.6.12 are vulnerable to Path Traversal. The package fails to restrict access to folders outside of the intended folder in the `/log/` route, 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 3.6.12 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "iobroker.admin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10765"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ioBroker/ioBroker.admin/commit/16b2b325ab47896090bc7f54b77b0a97ed74f5cd"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-IOBROKERADMIN-534634"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1346"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:55:50Z",
    "nvd_published_at" : null
  }
}