CVE-2015-9241: Hapi Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-rc8h-3fv6-pxv8
CWE-400
Published
Advisory Summary

CVE-2015-9241 is a HIGH denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Hapi libraries in the npm ecosystem. The issue involves denial of service in hapi. Remediation is available by upgrading affected packages to version 11.1.3.

CVE-2015-9241 at a Glance

CVE Identifier CVE-2015-9241
GHSA Identifier GHSA-rc8h-3fv6-pxv8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Hapi
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2015-9241

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

hapi fixed: 11.1.3
npm install hapi@11.1.3
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 hapi

How to Check if You Are Affected

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

npm ls hapi

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

Note: The npm ls hapi 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Hapi, 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 `hapi` prior to 11.1.3 are affected by a denial of service vulnerability. The vulnerability is triggered when certain input is passed into the If-Modified-Since or Last-Modified headers. This causes an 'illegal access' exception to be raised, and instead of sending a HTTP 500 error back to the sender, hapi will continue to hold the socket open until timed out (default node timeout is 2 minutes). ## Recommendation Update to v11.1.3 or later

CVE-2015-9241 Affected Hapi Versions

1 component(s)
Fixed Versions:
11.1.3
Product / Package Ecosystem Affected Versions Fixed Version
hapi
npm
< 11.1.3
11.1.3

References

Frequently Asked Questions

What is CVE-2015-9241?
CVE-2015-9241 is a security vulnerability in Hapi involving Denial of Service in hapi under CWE-400: Uncontrolled Resource Consumption.
Which Hapi versions are affected?
Affected versions include releases prior to 11.1.3 across affected packages: hapi.
What version fixes CVE-2015-9241?
Upgrading to 11.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hapi affected?
Yes, hapi is affected in releases prior to 11.1.3. Upgrade your dependency to 11.1.3 or later.
What CWE is associated with CVE-2015-9241?
CVE-2015-9241 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2015-9241?
Run the dependency tree command: 'npm ls hapi'. 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-rc8h-3fv6-pxv8",
  "modified" : "2020-08-31T18:09:46Z",
  "published" : "2018-06-07T19:43:15Z",
  "aliases" : [ "CVE-2015-9241" ],
  "summary" : "Denial of Service in hapi",
  "details" : "Versions of `hapi` prior to 11.1.3 are affected by a denial of service vulnerability.\n\nThe vulnerability is triggered when certain input is passed into the If-Modified-Since or Last-Modified headers.\n\nThis causes an 'illegal access' exception to be raised, and instead of sending a HTTP 500 error back to the sender, hapi will continue to hold the socket open until timed out (default node timeout is 2 minutes).\n\n\n\n\n\n## Recommendation\n\nUpdate to v11.1.3 or later",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "hapi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "11.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-9241"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jfhbrook/node-ecstatic/pull/179"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hapijs/hapi/commit/aab2496e930dce5ee1ab28eecec94e0e45f03580"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-rc8h-3fv6-pxv8"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/63"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:54:18Z",
    "nvd_published_at" : null
  }
}