Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    UBUNTU-CVE-2018-14618 (CVE-2018-14618)

    Vulnerability from osv_ubuntu – Published: 2018-09-05 00:00 – Updated: 2026-11-24 09:42 – Source website
    VLAI
    Details

    curl before version 7.61.1 is vulnerable to a buffer overrun in the NTLM authentication code. The internal function Curl_ntlm_core_mk_nt_hash multiplies the length of the password by two (SUM) to figure out how large temporary storage area to allocate from the heap. The length value is then subsequently used to iterate over the password and generate output into the allocated storage buffer. On systems with a 32 bit size_t, the math to calculate SUM triggers an integer overflow when the password length exceeds 2GB (2^31 bytes). This integer overflow usually causes a very small buffer to actually get allocated instead of the intended very huge one, making the use of that buffer end up in a heap buffer overflow. (This bug is almost identical to CVE-2017-8816.)

    Upstream
    Impacted products
    Ecosystem Package Version
    Ubuntu:14.04:LTS curl
    pkg:deb/ubuntu/curl@7.35.0-1ubuntu2.17?arch=source&distro=trusty
    Affected: < 7.35.0-1ubuntu2.17 (ecosystem)
    7.32.0-1ubuntu17.33.0-1ubuntu17.34.0-1ubuntu17.35.0-1ubuntu17.35.0-1ubuntu27.35.0-1ubuntu2.17.35.0-1ubuntu2.27.35.0-1ubuntu2.37.35.0-1ubuntu2.57.35.0-1ubuntu2.6 and 10 more (see JSON)
    Ubuntu:16.04:LTS curl
    pkg:deb/ubuntu/curl@7.47.0-1ubuntu2.9?arch=source&distro=xenial
    Affected: < 7.47.0-1ubuntu2.9 (ecosystem)
    7.43.0-1ubuntu27.45.0-1ubuntu17.46.0-1ubuntu17.47.0-1ubuntu17.47.0-1ubuntu27.47.0-1ubuntu2.17.47.0-1ubuntu2.27.47.0-1ubuntu2.37.47.0-1ubuntu2.47.47.0-1ubuntu2.5 and 3 more (see JSON)
    Ubuntu:18.04:LTS curl
    pkg:deb/ubuntu/curl@7.58.0-2ubuntu3.3?arch=source&distro=bionic
    Affected: < 7.58.0-2ubuntu3.3 (ecosystem)
    7.55.1-1ubuntu27.55.1-1ubuntu2.17.57.0-1ubuntu17.58.0-2ubuntu17.58.0-2ubuntu27.58.0-2ubuntu37.58.0-2ubuntu3.17.58.0-2ubuntu3.2

    {
      "affected": [
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "curl",
                "binary_version": "7.35.0-1ubuntu2.17"
              },
              {
                "binary_name": "libcurl3",
                "binary_version": "7.35.0-1ubuntu2.17"
              },
              {
                "binary_name": "libcurl3-gnutls",
                "binary_version": "7.35.0-1ubuntu2.17"
              },
              {
                "binary_name": "libcurl3-nss",
                "binary_version": "7.35.0-1ubuntu2.17"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:14.04:LTS",
            "name": "curl",
            "purl": "pkg:deb/ubuntu/curl@7.35.0-1ubuntu2.17?arch=source\u0026distro=trusty"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7.35.0-1ubuntu2.17"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "7.32.0-1ubuntu1",
            "7.33.0-1ubuntu1",
            "7.34.0-1ubuntu1",
            "7.35.0-1ubuntu1",
            "7.35.0-1ubuntu2",
            "7.35.0-1ubuntu2.1",
            "7.35.0-1ubuntu2.2",
            "7.35.0-1ubuntu2.3",
            "7.35.0-1ubuntu2.5",
            "7.35.0-1ubuntu2.6",
            "7.35.0-1ubuntu2.7",
            "7.35.0-1ubuntu2.8",
            "7.35.0-1ubuntu2.9",
            "7.35.0-1ubuntu2.10",
            "7.35.0-1ubuntu2.11",
            "7.35.0-1ubuntu2.12",
            "7.35.0-1ubuntu2.13",
            "7.35.0-1ubuntu2.14",
            "7.35.0-1ubuntu2.15",
            "7.35.0-1ubuntu2.16"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "curl",
                "binary_version": "7.47.0-1ubuntu2.9"
              },
              {
                "binary_name": "libcurl3",
                "binary_version": "7.47.0-1ubuntu2.9"
              },
              {
                "binary_name": "libcurl3-gnutls",
                "binary_version": "7.47.0-1ubuntu2.9"
              },
              {
                "binary_name": "libcurl3-nss",
                "binary_version": "7.47.0-1ubuntu2.9"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:16.04:LTS",
            "name": "curl",
            "purl": "pkg:deb/ubuntu/curl@7.47.0-1ubuntu2.9?arch=source\u0026distro=xenial"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7.47.0-1ubuntu2.9"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "7.43.0-1ubuntu2",
            "7.45.0-1ubuntu1",
            "7.46.0-1ubuntu1",
            "7.47.0-1ubuntu1",
            "7.47.0-1ubuntu2",
            "7.47.0-1ubuntu2.1",
            "7.47.0-1ubuntu2.2",
            "7.47.0-1ubuntu2.3",
            "7.47.0-1ubuntu2.4",
            "7.47.0-1ubuntu2.5",
            "7.47.0-1ubuntu2.6",
            "7.47.0-1ubuntu2.7",
            "7.47.0-1ubuntu2.8"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "curl",
                "binary_version": "7.58.0-2ubuntu3.3"
              },
              {
                "binary_name": "libcurl3-gnutls",
                "binary_version": "7.58.0-2ubuntu3.3"
              },
              {
                "binary_name": "libcurl3-nss",
                "binary_version": "7.58.0-2ubuntu3.3"
              },
              {
                "binary_name": "libcurl4",
                "binary_version": "7.58.0-2ubuntu3.3"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:18.04:LTS",
            "name": "curl",
            "purl": "pkg:deb/ubuntu/curl@7.58.0-2ubuntu3.3?arch=source\u0026distro=bionic"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7.58.0-2ubuntu3.3"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "7.55.1-1ubuntu2",
            "7.55.1-1ubuntu2.1",
            "7.57.0-1ubuntu1",
            "7.58.0-2ubuntu1",
            "7.58.0-2ubuntu2",
            "7.58.0-2ubuntu3",
            "7.58.0-2ubuntu3.1",
            "7.58.0-2ubuntu3.2"
          ]
        }
      ],
      "aliases": [],
      "details": "curl before version 7.61.1 is vulnerable to a buffer overrun in the NTLM authentication code. The internal function Curl_ntlm_core_mk_nt_hash multiplies the length of the password by two (SUM) to figure out how large temporary storage area to allocate from the heap. The length value is then subsequently used to iterate over the password and generate output into the allocated storage buffer. On systems with a 32 bit size_t, the math to calculate SUM triggers an integer overflow when the password length exceeds 2GB (2^31 bytes). This integer overflow usually causes a very small buffer to actually get allocated instead of the intended very huge one, making the use of that buffer end up in a heap buffer overflow. (This bug is almost identical to CVE-2017-8816.)",
      "id": "UBUNTU-CVE-2018-14618",
      "modified": "2026-11-24T09:42:36Z",
      "published": "2018-09-05T00:00:00Z",
      "references": [
        {
          "type": "REPORT",
          "url": "https://ubuntu.com/security/CVE-2018-14618"
        },
        {
          "type": "REPORT",
          "url": "https://curl.haxx.se/docs/CVE-2018-14618.html"
        },
        {
          "type": "REPORT",
          "url": "https://github.com/curl/curl/issues/2756"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-3765-1"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-3765-2"
        },
        {
          "type": "REPORT",
          "url": "https://www.cve.org/CVERecord?id=CVE-2018-14618"
        }
      ],
      "related": [
        "USN-3765-1",
        "USN-3765-2"
      ],
      "schema_version": "1.9.2",
      "severity": [
        {
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "source": "NVD",
          "type": "CVSS_V3"
        },
        {
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "source": "CNA",
          "type": "CVSS_V3"
        },
        {
          "score": "medium",
          "source": "SELF",
          "type": "Ubuntu"
        }
      ],
      "upstream": [
        "CVE-2018-14618"
      ]
    }