Skip to content

File Descriptor Leak Can Cause DoS Vulnerability in hapi

High severity GitHub Reviewed Published Oct 24, 2017 to the GitHub Advisory Database • Updated Apr 11, 2023

Package

npm hapi (npm)

Affected versions

>= 2.0.0, < 2.2.0

Patched versions

2.2.0

Description

Versions 2.0.x and 2.1.x of hapi are vulnerable to a denial of service attack via a file descriptor leak.

When triggered repeatedly, this leak will cause the server to run out of file descriptors and the node process to die. The effort required to take down a server depends on the process file descriptor limit. No other side effects or exploits have been identified.

Recommendation

  • Please upgrade to version 2.2.x or above as soon as possible.

References

Published to the GitHub Advisory Database Oct 24, 2017
Reviewed Jun 16, 2020
Last updated Apr 11, 2023

Severity

High

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(72nd percentile)

Weaknesses

Uncontrolled Resource Consumption

The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources. Learn more on MITRE.

CVE ID

CVE-2014-3742

GHSA ID

GHSA-cqr7-78pj-3g7j

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.