# CVE-2020-15694: In Nim 1.2.4, the standard library httpClient fails to properly validate the server response.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.33%, higher than 84% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-08-14T18:48:45.000Z
- Modified: 2026-06-17T02:57:03.937Z
- Weaknesses: CWE-20
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- nim-lang nim: up to 1.2.6

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <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)
- <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)

## Sources

- CVE List: [CVE-2020-15694](https://www.cve.org/CVERecord?id=CVE-2020-15694), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-15694](https://nvd.nist.gov/vuln/detail/CVE-2020-15694), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15694 · Whole record: https://cve.day/CVE-2020-15694.json · Rebuilt by cve.day 2026-11-25T22:57:54.191Z
