PT-2020-14589 · Nim+1 · Nim+1
Tintinweb
·
Published
2020-08-14
·
Updated
2024-06-15
·
CVE-2020-15694
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Nim version 1.2.4
Description
The standard library httpClient in Nim fails to properly validate the server response. For instance,
httpClient.get().contentLength() does not raise an error if a malicious server provides a negative Content-Length.Recommendations
For Nim version 1.2.4, consider validating server responses manually to ensure the Content-Length is not negative until a patch is available. As a temporary workaround, restrict the use of
httpClient.get().contentLength() to minimize the risk of exploitation.Exploit
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Nim