Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-3822
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:41 UTC · Revision 1

Source evidence

CVE-2019-3822

core-osv · Original source

Published 6 Feb 2019, 20:29 UTC

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.

osv:CVE-2019-3822
Complete source record
{
  "id": "103b67265080b29ad15162be8748ee711c5a45373237b5d71c552e500c853f14",
  "url": "https://osv.dev/vulnerability/CVE-2019-3822",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-3822",
    "summary": "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.",
    "evidence": "osv:CVE-2019-3822",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2019-3822",
      "aliases": [
        "CURL-CVE-2019-3822",
        "CVE-2019-3822"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/curl/curl",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4f041c9d6e61829310eb0715d8edb2a232478123"
                },
                {
                  "fixed": "f3294d9d86e6a7915a967efff2842089b8b0d071"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.36.0"
                      },
                      {
                        "fixed": "7.64.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "curl-7_63_0",
            "curl-7_62_0",
            "curl-7_61_1",
            "curl-7_61_0",
            "curl-7_60_0",
            "curl-7_59_0",
            "curl-7_58_0",
            "curl-7_57_0",
            "curl-7_56_1",
            "curl-7_56_0",
            "curl-7_55_1",
            "curl-7_55_0",
            "curl-7_54_1",
            "curl-7_54_0",
            "curl-7_53_1",
            "curl-7_53_0",
            "curl-7_52_1",
            "curl-7_52_0",
            "curl-7_51_0",
            "curl-7_50_3",
            "curl-7_50_2",
            "curl-7_50_1",
            "curl-7_50_0",
            "curl-7_49_1",
            "curl-7_49_0",
            "curl-7_48_0",
            "curl-7_47_1",
            "curl-7_47_0",
            "curl-7_46_0",
            "curl-7_45_0",
            "curl-7_44_0",
            "curl-7_43_0",
            "curl-7_42_0",
            "curl-7_41_0",
            "curl-7_40_0",
            "curl-7_39_0",
            "curl-7_38_0",
            "curl-7_37_1",
            "curl-7_37_0",
            "curl-7_36_0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-3822.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/mysql/mysql-server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8cc757da3d87bf4a1f07dcfb2d3c96fed3806870"
                },
                {
                  "introduced": "817fcb883a8457fcf507156bb1a2052e887acc4c"
                },
                {
                  "last_affected": "ca94b993454c86be248fbe180db94647488114e9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.7.26"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.7.27"
                      },
                      {
                        "last_affected": "8.0.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "mysql-5.7.26",
            "mysql-8.0.15",
            "mysql-8.0.14",
            "mysql-5.1.4",
            "mysql-4.0.4",
            "mysql-4.0.2",
            "mysql-3.23.36",
            "mysql-3.23.33",
            "mysql-3.23.32",
            "mysql-3.23.31",
            "mysql-3.23.30-gamma",
            "mysql-3.23.28-gamma",
            "mysql-3.23.22-beta"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-3822.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:56.913620410Z",
      "provider": "osv",
      "references": [
        "https://lists.apache.org/thread.html/8338a0f605bdbb3a6098bb76f666a95fc2b2f53f37fa1ecc89f1146f%40%3Cdevnull.infra.apache.org%3E",
        "https://support.f5.com/csp/article/K84141449?utm_source=f5support&amp%3Butm_medium=RSS",
        "https://access.redhat.com/errata/RHSA-2019:3701",
        "https://cert-portal.siemens.com/productcert/pdf/ssa-436177.pdf",
        "https://security.gentoo.org/glsa/201903-03",
        "https://security.netapp.com/advisory/ntap-20190719-0004/",
        "https://support.f5.com/csp/article/K84141449",
        "https://usn.ubuntu.com/3882-1/",
        "https://www.debian.org/security/2019/dsa-4386",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3822",
        "https://curl.haxx.se/docs/CVE-2019-3822.html",
        "https://security.netapp.com/advisory/ntap-20190315-0001/",
        "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html",
        "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:netapp:active_iq_unified_manager:*:*:*:*:*:vsphere:*:*",
              "cpe:2.3:a:netapp:active_iq_unified_manager:*:*:*:*:*:windows:*:*"
            ],
            "vendor_product": "netapp:active_iq_unified_manager",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.3"
                  },
                  {
                    "introduced": "9.5"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:siemens:sinema_remote_connect_client:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "siemens:sinema_remote_connect_client",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "18.10"
                  },
                  {
                    "last_affected": "18.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:communications_operations_monitor:3.4:*:*:*:*:*:*:*",
              "cpe:2.3:a:oracle:communications_operations_monitor:4.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:communications_operations_monitor",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.4"
                  },
                  {
                    "last_affected": "3.4"
                  },
                  {
                    "introduced": "4.0"
                  },
                  {
                    "last_affected": "4.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:enterprise_manager_ops_center:12.3.3:*:*:*:*:*:*:*",
              "cpe:2.3:a:oracle:enterprise_manager_ops_center:12.4.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:enterprise_manager_ops_center",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.3.3"
                  },
                  {
                    "last_affected": "12.3.3"
                  },
                  {
                    "introduced": "12.4.0"
                  },
                  {
                    "last_affected": "12.4.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:http_server:12.2.1.3.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:http_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.2.1.3.0"
                  },
                  {
                    "last_affected": "12.2.1.3.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:secure_global_desktop:5.4:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:secure_global_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.4"
                  },
                  {
                    "last_affected": "5.4"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:services_tools_bundle:19.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:services_tools_bundle",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "19.2"
                  },
                  {
                    "last_affected": "19.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-3822",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 438760,
  "published_at": "2019-02-06T20:29:00.353+00:00"
}