CVE-2021-29486

Published on: 04/30/2021 12:00:00 AM UTC

Last Modified on: 04/30/2021 07:06:00 PM UTC

CVE-2021-29486 - advisory for GHSA-58qp-5328-v7mh

Source: Mitre Source: Nist Print: PDF PDF
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Certain versions of Cumulative-distribution-function from DrPaulBrewer contain the following vulnerability:

cumulative-distribution-function is an open source npm library used which calculates statistical cumulative distribution function from data array of x values. In versions prior to 2.0.0 apps using this library on improper data may crash or go into an infinite-loop. In the case of a nodejs server-app using this library to act on invalid non-numeric data, the nodejs server may crash. This may affect other users of this server and/or require the server to be rebooted for proper operation. In the case of a browser app using this library to act on invalid non-numeric data, that browser may crash or lock up. A flaw enabling an infinite-loop was discovered in the code for evaluating the cumulative-distribution-function of input data. Although the documentation explains that numeric data is required, some users may confuse an array of strings like ["1","2","3","4","5"] for numeric data [1,2,3,4,5] when it is in fact string data. An infinite loop is possible when the cumulative-distribution-function is evaluated for a given point when the input data is string data rather than type `number`. This vulnerability enables an infinite-cpu-loop denial-of-service-attack on any app using npm:cumulative-distribution-function v1.0.3 or earlier if the attacker can supply malformed data to the library. The vulnerability could also manifest if a data source to be analyzed changes data type from Arrays of number (proper) to Arrays of string (invalid, but undetected by earlier version of the library). Users should upgrade to at least v2.0.0, or the latest version. Tests for several types of invalid data have been created, and version 2.0.0 has been tested to reject this invalid data by throwing a `TypeError()` instead of processing it. Developers using this library may wish to adjust their app's code slightly to better tolerate or handle this TypeError. Apps performing proper numeric data validation before sending data to this library should be mostly unaffected by this patch. The vulnerability can be mitigated in older versions by ensuring that only finite numeric data of type `Array[number]` or `number` is passed to `cumulative-distribution-function` and its `f(x)` function, respectively.

  • CVE-2021-29486 has been assigned by URL Logo [email protected] to track the vulnerability
  • Affected Vendor/Software: URL Logo DrPaulBrewer - cumulative-distribution-function version < 2.0.0

CVE References

Description Tags Link
Improper Input Validation and Loop with Unreachable Exit Condition ('Infinite Loop') in cumulative-distribution-function · Advisory · DrPaulBrewer/cumulative-distribution-function · GitHub github.com
text/html
URL Logo CONFIRM github.com/DrPaulBrewer/cumulative-distribution-function/security/advisories/GHSA-58qp-5328-v7mh
The Ensure numeric PR checks for clean data and fixes issue #7 by DrPaulBrewer · Pull Request #8 · DrPaulBrewer/cumulative-distribution-function · GitHub github.com
text/html
URL Logo MISC github.com/DrPaulBrewer/cumulative-distribution-function/pull/8
cumulative-distribution-function - npm www.npmjs.com
text/html
URL Logo MISC www.npmjs.com/package/cumulative-distribution-function
cdf never yields result for certain input · Issue #7 · DrPaulBrewer/cumulative-distribution-function · GitHub github.com
text/html
URL Logo MISC github.com/DrPaulBrewer/cumulative-distribution-function/issues/7

Known Affected Software

Vendor Product Version
DrPaulBrewer cumulative-distribution-function < 2.0.0

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2021-29486 : cumulative-distribution-function is an open source npm library used which calculates statistical c… twitter.com/i/web/status/1… 2021-04-30 17:23:26
Reddit Logo Icon /r/netcve CVE-2021-29486 2021-04-30 17:45:37
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report