CVE-2020-15693
Nim vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2020-15693) affects Nim version 1.2.4's standard library httpClient component. The vulnerability allows for CR-LF injection in the target URL when an attacker controls any part of the URL provided to httpClient methods, user-agent, or custom HTTP header names or values (Openwall, NVD).

Technical details

The vulnerability shares similarities with CVE-2019-9740 and CVE-2019-9947 reported for Python language but includes more injection vectors. The injection is possible in various components: any part of the URL provided to httpClient.[get|post|...], the user-agent, or custom HTTP header names or values. The vulnerability allows for header injection in query parameters, path components, and user-agent fields (Openwall).

Impact

An attacker who controls any part of the URL, user-agent, or HTTP headers can inject CR-LF sequences, potentially leading to HTTP request smuggling or header injection attacks. This could allow for request manipulation and potentially lead to security bypasses or unauthorized access (Consensys).

Exploitability

The vulnerability can be exploited by injecting CR-LF sequences in various parts of the HTTP request, including URL parameters, path components, and HTTP headers. Proof of concept code demonstrates successful exploitation through different injection vectors including query parameters, path components, and user-agent fields (Openwall).

Mitigation and workarounds

The vulnerability was fixed in Nim version 1.2.6. Users should upgrade to this version or later to receive the security fix. The fix was released on July 30, 2020 (Nim Blog).

Additional resources


SourceThis report was generated using AI

Related Nim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-21374HIGH8.1
  • Nim logoNim
  • nim
NoYesMar 26, 2021
CVE-2021-29495HIGH7.5
  • Nim logoNim
  • nim
NoYesMay 07, 2021
CVE-2021-46872MEDIUM6.1
  • Nim logoNim
  • nim
NoYesJan 13, 2023
CVE-2021-21373MEDIUM5.9
  • Nim logoNim
  • nim
NoYesMar 26, 2021
CVE-2020-23171MEDIUM5.5
  • Nim logoNim
  • nim
NoNoAug 10, 2021

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management