Skip to content
Fencer Intel
medium 6.5

CVE-2018-20712 json

A heap-based buffer over-read exists in the function d_expression_1 in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31.…

published 7y ago modified 4mo ago also EUVD-2018-13259

cvss
6.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.6%
EPSS 2.6% chance of exploitation in 30 days, percentile 85%
public exploits
0
none known

Summary

A heap-based buffer over-read exists in the function d_expression_1 in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31.1. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by c++filt.

Patch / fix

  • binutils Alpine 3.24, Alpine 3.23, Alpine 3.22 +12 more 2.32-r0
  • binutils-avr Alpine 3.12, Alpine 3.11 2.32-r0

alpine advisories ALPINE-CVE-2018-20712

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • binutils Arch Linux 2.32-1

arch linux advisories AVG-832

Is CVE-2018-20712 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-20712 updated cvss 4.7

libiberty: heap-based buffer over-read in d_expression_1

  • Red Hat Enterprise Linux 5 gcc, gdb, binutils Red Hat Enterprise Linux 6 cpp, gcc, gdb, libgcc, libgcj, libitm, +17 more Red Hat Enterprise Linux 7 cpp, gcc, gdb, libgo, gcc-go, libgcc, +18 more Red Hat Enterprise Linux 8 cpp, gcc, gdb, libgcc, libitm, gcc-c++, +17 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.64% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • gcc.gnu.org https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88629 referenced PoC, tagged "exploit" by a source, unverified
  • sourceware.org https://sourceware.org/bugzilla/show_bug.cgi?id=24043 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.