Memory Leak Vulnerability in Binutils Package - CVE-2018-20002

binutils Updated 02 Oct 2025

Summary

10/12/2018
N/A
Yes i
Medium
5.5

ALPINE-CVE-2018-20002: The _bfd_generic_read_minisymbols function in syms.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.31, has a memory leak via a crafted ELF file, leading to a denial of service... Affects binutils versions < 2.32-r0. Fixed in 2.32-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Binutils package is a collection of binary tools used for handling object files, archives, and binary executables. It includes tools like 'as' (the assembler), 'ld' (the linker), and 'nm' (the symbol list generator). This package is essential for developers working with low-level programming and system software. However, it has been found to have a vulnerability that can lead to memory leaks when processing crafted ELF files.

Vulnerability Detail

The vulnerability, identified as CVE-2018-20002, originates from the _bfd_generic_read_minisymbols function in the Binary File Descriptor (BFD) library, which is part of the GNU Binutils. This function has a memory leak issue that can be exploited via a specially crafted ELF file, leading to denial of service due to excessive memory consumption. The vulnerability affects multiple versions of the Binutils package across various Alpine Linux releases, making it a significant concern for users relying on this package for their development needs.

How To Fix

Minimum fixed version

2.32-r0

This is the first release that contains the fix.

sudo apk add --upgrade binutils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid processing untrusted ELF files until the package is updated to the patched version. Additionally, monitoring memory usage during the execution of applications that utilize Binutils can help mitigate the impact of this vulnerability.

Conclusion

The CVE-2018-20002 vulnerability in the Binutils package poses a significant risk due to its potential for causing memory leaks and denial of service. Users are strongly advised to update to the patched version to mitigate this risk. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for binutils →

Share this vulnerability

FAQ

CVE-2018-20002 is a vulnerability in the Binutils package that causes a memory leak when processing crafted ELF files.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to denial of service due to excessive memory consumption, potentially crashing applications that rely on Binutils.

Yes, a patch is available in version 2.32-r0 of the Binutils package. Users should update to this version or later.

The CVSS score for CVE-2018-20002 is 5.5, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for binutils.

How To Fix

Minimum fixed version

2.32-r0

This is the first release that contains the fix.

sudo apk add --upgrade binutils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback