{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "5.0.0"
              },
              {
                "last_affected": "5.1.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "4.4.0"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.31.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "0860693812fff944ab0602e72b762a4a2078da5b"
            }
          ],
          "repo": "https://sourceware.org/git/binutils-gdb.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "The demangle_template function in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.31.1, has a memory leak via a crafted string, leading to a denial of service (memory consumption), as demonstrated by cxxfilt, a related issue to CVE-2018-12698.",
  "id": "CVE-2018-20657",
  "modified": "2026-03-15T21:45:23.138348906Z",
  "published": "2019-01-02T14:29:00.313Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://support.f5.com/csp/article/K62602089"
    },
    {
      "type": "ADVISORY",
      "url": "http://www.securityfocus.com/bid/106444"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2019:3352"
    },
    {
      "type": "REPORT",
      "url": "https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88539"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}