# 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…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.0, CNA) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 12.87% (percentile 97, 2026-11-26)
- **CWE:** CWE-121
- **Published:** 2019-02-06T20:00:00.000Z
- **Modified:** 2026-06-17T02:35:39.603Z

## Who should check

- Anyone running The curl Project curl 7.64.0

## Description

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.

## Affected and fixed versions

- The curl Project curl: 7.64.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2019-3822. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-3822.md
Affected: The curl Project curl 7.64.0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for The curl Project curl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2019-3822 being exploited?

There is no confirmed exploitation: CVE-2019-3822 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 12.87% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2019-3822?

High: CVSS 7.1 (v3.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2019-3822?

The curl Project curl 7.64.0.

### Is there a fix for CVE-2019-3822?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2019-3822?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://security.gentoo.org/glsa/201903-03>
- vendor: <https://www.debian.org/security/2019/dsa-4386>
- vendor: <https://usn.ubuntu.com/3882-1/>
- vendor: <https://access.redhat.com/errata/RHSA-2019:3701>
- patch: <https://curl.haxx.se/docs/CVE-2019-3822.html>
- patch: <https://security.netapp.com/advisory/ntap-20190315-0001/>
- patch: <https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html>
- patch: <https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html>
- exploit: <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3822>
- other: <http://www.securityfocus.com/bid/106950>
- other: <https://lists.apache.org/thread.html/8338a0f605bdbb3a6098bb76f666a95fc2b2f53f37fa1ecc89f1146f%40%3Cdevnull.infra.apache.org%3E>
- other: <https://cert-portal.siemens.com/productcert/pdf/ssa-436177.pdf>
- other: <https://security.netapp.com/advisory/ntap-20190719-0004/>
- other: <https://support.f5.com/csp/article/K84141449>
- other: <https://support.f5.com/csp/article/K84141449?utm_source=f5support&amp%3Butm_medium=RSS>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2019-3822>

HTML: <https://flawdb.com/CVE-2019-3822> · JSON: <https://flawdb.com/api/v1/entries/CVE-2019-3822>
