CVE-2016-10665: Herbivore Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-7r2x-3qcm-8vfw
CVSS 8.1
CWE-311
Published
Advisory Summary

CVE-2016-10665 is a HIGH (CVSS 8.1) remote code execution vulnerability (CWE-311: Missing Encryption of Sensitive Data) affecting Herbivore libraries in the npm ecosystem. The issue involves herbivore downloads resources over http. Remediation is available in the latest vendor maintenance releases.

CVE-2016-10665 at a Glance

CVE Identifier CVE-2016-10665
GHSA Identifier GHSA-7r2x-3qcm-8vfw
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-311: Missing Encryption of Sensitive Data
Affected Product Herbivore
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
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-2016-10665

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

herbivore fixed: Latest secure release
npm install herbivore@Latest secure release
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 herbivore

How to Check if You Are Affected

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

npm ls herbivore

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

Note: The npm ls herbivore 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-311: Missing Encryption of Sensitive Data, where the product does not encrypt sensitive or critical information before storage or transmission. In Herbivore, 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

Affected versions of `herbivore` insecurely download an executable over an unencrypted HTTP connection. In scenarios where an attacker has a privileged network position, it is possible to intercept the response and replace the executable with a malicious one, resulting in code execution on the system running `herbivore`. ## Recommendation The module author has rewritten much of the package, and in that process, patched the vulnerability, but has not published any of the new code to npm. In order to get an updated version, it is necessary to install the package from github. This can be done using the following command: ``` npm i samatt/herbivore ```

CVE-2016-10665 Affected Herbivore Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
herbivore
npm
≤ 0.0.3

References

Frequently Asked Questions

What is CVE-2016-10665?
CVE-2016-10665 is a security vulnerability in Herbivore involving herbivore downloads Resources over HTTP under CWE-311: Missing Encryption of Sensitive Data.
Which Herbivore versions are affected?
Affected versions include releases prior to current release patches across affected packages: herbivore.
What version fixes CVE-2016-10665?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is herbivore affected?
Yes, herbivore is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2016-10665?
CVE-2016-10665 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-10665?
CVE-2016-10665 is classified under CWE-311: Missing Encryption of Sensitive Data (The product does not encrypt sensitive or critical information before storage or transmission.).
How can I check npm dependencies for CVE-2016-10665?
Run the dependency tree command: 'npm ls herbivore'. 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-7r2x-3qcm-8vfw",
  "modified" : "2023-09-13T22:21:26Z",
  "published" : "2019-02-18T23:44:36Z",
  "aliases" : [ "CVE-2016-10665" ],
  "summary" : "herbivore downloads Resources over HTTP",
  "details" : "Affected versions of `herbivore` insecurely download an executable over an unencrypted HTTP connection. \n\nIn scenarios where an attacker has a privileged network position, it is possible to intercept the response and replace the executable with a malicious one, resulting in code execution on the system running `herbivore`.\n\n\n## Recommendation\n\nThe module author has rewritten much of the package, and in that process, patched the vulnerability, but has not published any of the new code to npm.  \n\nIn order to get an updated version, it is necessary to install the package from github. This can be done using the following command:\n```\nnpm i samatt/herbivore\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "herbivore"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-10665"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/samatt/Herbivore/commit/0a041defc3463e99948e5d2064aef54b2128c5a3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-7r2x-3qcm-8vfw"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/samatt/herbivore"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/258"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-311" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:23:24Z",
    "nvd_published_at" : null
  }
}