Improper Input Validation Affecting nim package, versions <1.2.6-1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.33% (82nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2010-NIM-1029667
  • published1 Nov 2020
  • disclosed14 Aug 2020

Introduced: 14 Aug 2020

CVE-2020-15694  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.10 nim to version 1.2.6-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nim package and not the nim package as distributed by Ubuntu. See How to fix? for Ubuntu:20.10 relevant fixed versions and status.

In Nim 1.2.4, the standard library httpClient fails to properly validate the server response. For example, httpClient.get().contentLength() does not raise any error if a malicious server provides a negative Content-Length.

CVSS Base Scores

version 3.1