File size limit bypass in node-fetch (node-fetch node-fetch)

CVE-2020-15168
LOW 2.6

En bref

Source
NVD
EPSS
EPSS 1.69 % · centile 77 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
GitHub_M
Statut NVD
Modified

Description

node-fetch before versions 2.6.1 and 3.0.0-beta.9 did not honor the size option after following a redirect, which means that when a content size was over the limit, a FetchError would never get thrown and the process would end without failure. For most people, this fix will have a little or no impact. However, if you are relying on node-fetch to gate files above a size, the impact could be significant, for example: If you don't double-check the size of the data after fetch() has completed, your JS thread could get tied up doing work on a large file (DoS) and/or cost you money in computing.

Faiblesses (CWE)

  • CWE-20 — Validation d'entrée incorrecte
  • CWE-770 — Allocation de ressources sans limite ni régulation

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1LOW 2.6CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:LGitHub_M
CVSS 3.1LOW 2.6CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:LNVD · security-advisories@github.com (Secondary)
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LNVD · nvd@nist.gov (Primary)
CVSS 2.0MEDIUM 5.0AV:N/AC:L/Au:N/C:N/I:N/A:PNVD · nvd@nist.gov (Primary)

Avis

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
node-fetch · node-fetchaffected <2.6.1 ; affected >3.0.0-beta.1, <3.0.0-beta.9

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD