Heap-Based Buffer Over-Read Vulnerability in Binutils: CVE-2018-20712
Summary
ALPINE-CVE-2018-20712: 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. Affects binutils versions < 2.32-r0. Fixed in 2.32-r0. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
GNU Binutils is a collection of binary tools that assist in the management and manipulation of binary files, including object files and executable files. It provides essential functionalities such as linking, assembling, and disassembling. The package is widely used in various software development environments. However, it has been identified to have a vulnerability that can lead to severe consequences if exploited.
Vulnerability Detail
A heap-based buffer over-read exists in the function d_expression_1 in cp-demangle.c within GNU libiberty, as distributed in GNU Binutils version 2.31.1. This vulnerability can be triggered by a crafted input, potentially causing segmentation faults and resulting in denial-of-service conditions. The technical aspect of this vulnerability lies in the improper handling of memory, which allows attackers to exploit the buffer over-read.
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
If immediate patching is not feasible, consider implementing input validation to sanitize and restrict the types of inputs that can be processed by the affected function. This can help mitigate the risk of triggering the vulnerability.
Conclusion
The CVE-2018-20712 vulnerability in GNU Binutils poses a significant risk due to its potential to cause denial-of-service through a heap-based buffer over-read. It is crucial to update to the patched version to mitigate this risk and ensure the security of your applications.
See every vulnerability recorded for binutils →
FAQ
CVE-2018-20712 is a vulnerability in GNU Binutils that allows for a heap-based buffer over-read, potentially leading to denial-of-service.
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 segmentation faults and denial-of-service conditions, impacting the availability of the affected application.
You can update the Binutils package by running the command 'apk add --update binutils=2.32-r0' in your Alpine Linux environment.
The CVSS score of this vulnerability is 6.5, indicating a moderate level of severity.
References
Related vulnerabilities
Recent vulnerabilities recorded for binutils.