Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-18701

An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption vulnerability resulting from infinite recursion in the functions next_is_type_qual() and cplus_demangle_type() in cp-demangle.c. Remote attackers could leverage this vulnerability to cause a denial-of-service via an ELF file, as demonstrated by nm.

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

Source evidence

CVE-2018-18701

core-osv · Original source

Published 29 Oct 2018, 12:29 UTC

An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption vulnerability resulting from infinite recursion in the functions next_is_type_qual() and cplus_demangle_type() in cp-demangle.c. Remote attackers could leverage this vulnerability to cause a denial-of-service via an ELF file, as demonstrated by nm.

osv:CVE-2018-18701
Complete source record
{
  "id": "fa0101bea0cf49f7f49264e2fa83598972baa1e2bc0ee4753cd89d19e745fe7f",
  "url": "https://osv.dev/vulnerability/CVE-2018-18701",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-18701",
    "summary": "An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption vulnerability resulting from infinite recursion in the functions next_is_type_qual() and cplus_demangle_type() in cp-demangle.c. Remote attackers could leverage this vulnerability to cause a denial-of-service via an ELF file, as demonstrated by nm.",
    "evidence": "osv:CVE-2018-18701",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-18701",
      "aliases": [
        "CVE-2018-18701"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://sourceware.org/git/binutils-gdb.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "af127c216949509e57ab2a28cc56c44e4e548813"
                },
                {
                  "last_affected": "af127c216949509e57ab2a28cc56c44e4e548813"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnu:binutils:2.31:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.31"
                      },
                      {
                        "last_affected": "2.31"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.31",
            "binutils-2_31"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18701.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:58.133698053Z",
      "provider": "osv",
      "references": [
        "https://usn.ubuntu.com/4326-1/",
        "https://usn.ubuntu.com/4336-1/",
        "https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87675"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-18701",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 439006,
  "published_at": "2018-10-29T12:29:04.82+00:00"
}