CVE-2020-15694
7.5high
In Nim 1.2.4, the standard library httpClient fails to properly validate the server response.
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 2.33% (higher than 84% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| nim-lang nim | up to 1.2.6 | NVD |
All scores
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
En Nim versión 1.2.4, la biblioteca estándar httpClient presenta un fallo al comprobar apropiadamente la respuesta del servidor. Por ejemplo, httpClient.get().contentLength() no genera ningún error si un servidor malicioso proporciona un Content-Length negativo.
References
| https://github.com/nim-lang/Nim/blob/dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99/lib/pure/httpclient.nim#L241 | patch, third-party-advisory | |
| https://nim-lang.org/blog/2020/07/30/versions-126-and-108-released.html | release-notes, third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2021/02/04/2 | exploit, mailing-list, third-party-advisory | |
| https://consensys.net/diligence/vulnerabilities/nim-httpclient-header-crlf-injection/ | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15694 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-15694 changed 2026-06-17 | Public domain |