Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Nim-Lang | Nim | <= 1.2.6 |
Related Weaknesses (CWE)
References
- http://www.openwall.com/lists/oss-security/2021/02/04/2ExploitMailing ListThird Party Advisory
- https://consensys.net/diligence/vulnerabilities/nim-httpclient-header-crlf-injecExploitThird Party Advisory
- https://github.com/nim-lang/Nim/blob/dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99/liPatchThird Party Advisory
- https://nim-lang.org/blog/2020/07/30/versions-126-and-108-released.htmlRelease NotesThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/02/04/2ExploitMailing ListThird Party Advisory
- https://consensys.net/diligence/vulnerabilities/nim-httpclient-header-crlf-injecExploitThird Party Advisory
- https://github.com/nim-lang/Nim/blob/dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99/liPatchThird Party Advisory
- https://nim-lang.org/blog/2020/07/30/versions-126-and-108-released.htmlRelease NotesThird Party Advisory
FAQ
What is CVE-2020-15694?
CVE-2020-15694 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ne...
How severe is CVE-2020-15694?
CVE-2020-15694 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2020-15694?
Check the references section above for vendor advisories and patch information. Affected products include: Nim-Lang Nim.