CVE-2019-3822
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.
What to do
Likely to be exploited: EPSS gives a 13% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | curl | Fixed | 7.58.0-2ubuntu3.6 | UBUNTU-CVE-2019-3822 |
| Ubuntu 16.04 | curl | Fixed | 7.47.0-1ubuntu2.12 | UBUNTU-CVE-2019-3822 |
| Debian 14 | curl | Fixed | 7.64.0-1 | DEBIAN-CVE-2019-3822 |
| Debian 13 | curl | Fixed | 7.64.0-1 | DEBIAN-CVE-2019-3822 |
| Debian 12 | curl | Fixed | 7.64.0-1 | DEBIAN-CVE-2019-3822 |
| Red Hat Enterprise Linux 8 | curl | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 8 | libcurl | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 8 | libcurl-devel | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 8 | libcurl-minimal | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 7 | curl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | curl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 5 | curl | Not affected | ||
| Alpine Linux 3.24 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.23 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.22 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.21 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.20 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.19 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.18 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.17 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.16 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.15 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.14 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.13 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.12 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.11 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.10 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.9 | curl | Fixed | 7.64.0-r0 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.8 | curl | Fixed | 7.61.1-r2 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.7 | curl | Fixed | 7.61.1-r2 | ALPINE-CVE-2019-3822 |
| Alpine Linux 3.6 | curl | Fixed | 7.61.1-r2 | ALPINE-CVE-2019-3822 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The curl Project curl: affected: 7.64.0
Vendor advisories:
- https://security.gentoo.org/glsa/201903-03 (vendor-advisory)
- https://www.debian.org/security/2019/dsa-4386 (vendor-advisory)
- https://usn.ubuntu.com/3882-1/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:3701 (vendor-advisory)
References
- https://security.gentoo.org/glsa/201903-03
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3822
- https://www.debian.org/security/2019/dsa-4386
- https://curl.haxx.se/docs/CVE-2019-3822.html
- https://security.netapp.com/advisory/ntap-20190315-0001/
- https://usn.ubuntu.com/3882-1/
- http://www.securityfocus.com/bid/106950
- https://lists.apache.org/thread.html/8338a0f605bdbb3a6098bb76f666a95fc2b2f53f37fa1ecc89f1146f%40%3Cdevnull.infra.apache.org%3E
- https://cert-portal.siemens.com/productcert/pdf/ssa-436177.pdf
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- https://security.netapp.com/advisory/ntap-20190719-0004/
- https://support.f5.com/csp/article/K84141449
- https://support.f5.com/csp/article/K84141449?utm_source=f5support&%3Butm_medium=RSS
- https://access.redhat.com/errata/RHSA-2019:3701
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.