ALPINE-CVE-2019-3822 PUBLISHED CVSS 9.800000190734863 CRITICAL

libcurl versions from 7.36.0 to before 7.64.0 are vulnerable to a stack-based buffer overflow. The function creating an outgoing NTLM type-3 header (`lib/vauth/ntlm.c:Curl_auth_create_ntlm_type3_message()`), generates the request HTTP header contents based on previously received data. The check that exists to prevent the local buffer from getting overflowed is implemented wrongly (using unsigned math) and as such it does not prevent the overflow from happening. This output data can grow larger than the local buffer if very large 'nt response' data is extracted from a previous NTLMv2 header provided by the malicious or broken HTTP server. Such a 'large value' needs to be around 1000 bytes or more. The actual payload data copied to the target buffer comes from the NTLMv2 type-2 response header.

Risk Scores

CVSS v3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Products

VendorProductVersions
Alpine:v3.13curl7.58.0-r1, 7.58.0-r0, 7.57.0-r0
Alpine:v3.8curl7.27.0-r0, 7.61.1-r1, 7.61.1-r0
Alpine:v3.14curl7.63.0-r0, 7.58.0-r0, 7.57.0-r0
Alpine:v3.19curl7.21.1-r0, 7.21.2-r0, 7.21.3-r0
Alpine:v3.7curl0, 7.28.1-r0, 7.28.0-r0
Alpine:v3.23curl7.21.7-r2, 7.21.7-r1, 7.21.7-r0
Alpine:v3.15curl7.19.2-r0, 0, 7.19.2-r0
Alpine:v3.17curl7.21.1-r0, 7.63.0-r0, 7.62.0-r2
Alpine:v3.9curl7.25.0-r0, 7.63.0-r0, 7.62.0-r2
Alpine:v3.21curl7.21.1-r0, 7.21.2-r0, 7.21.3-r0
Alpine:v3.18curl7.21.1-r0, 0, 7.19.2-r0
Alpine:v3.16curl7.20.1-r1, 7.21.1-r0, 7.58.0-r0
Alpine:v3.6curl7.61.1-r0, 7.61.0-r0, 7.60.0-r1
Alpine:v3.10curl7.19.2-r0, 0, 7.63.0-r0
Alpine:v3.20curl7.21.0-r0, 7.63.0-r0, 0
Alpine:v3.22curl7.19.2-r1, 0, 7.23.1-r0
Alpine:v3.11curl7.42.1-r1, 7.63.0-r0, 7.62.0-r2
Alpine:v3.12curl7.19.2-r0, 7.63.0-r0, 7.21.2-r0

Timeline

References

Open in Interactive Console →