CVE-2018-20712 Memory corruption in n/a

Medium 6.5 Published Updated

A heap-based buffer over-read in GNU libiberty allows attackers to cause a denial of service via crafted input to c++filt.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-20712?

CVE-2018-20712 is a medium-severity memory corruption vulnerability in Gnu Binutils, published on 15 Jan 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-125

Which versions are affected by CVE-2018-20712?

It affects 1 product.

Products include Gnu Binutils.

How do I fix CVE-2018-20712?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-20712 being exploited?

There is no known exploitation of CVE-2018-20712 in the wild and no public exploit code.

All Gnu Binutils vulnerabilities

Sources

Also known as ALPINE-CVE-2018-20712, CLEANSTART-2025-QJ02692, DEBIAN-CVE-2018-20712, ECHO-0160-9330-67cd, GHSA-cgr8-f44r-j4r5, ROOT-OS-DEBIAN-12-CVE-2018-20712 and 1 more.

Is CVE-2018-20712 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free