CVE-2026-18220: GNU binutils - Out of Bounds Write
- Cve: CVE-2026-18220
- Name: GNU binutils - Out of Bounds Write
- Description: An out-of-bounds write vulnerability was found in the BFD library's DLX ELF backend (bfd/elf32-dlx.c) in GNU binutils. The dlx_rtype_to_howto() function maps ELF relocation types to internal howto structures but fails to perform adequate bounds checking on attacker-controlled relocation type values (via ELF32_R_TYPE(r_info)) before indexing into the dlx_elf_howto_table[] array. The DLX relocation type number space is non-contiguous (basic types 0-6, extended types at 0x10000+), but the default case in the switch statement allows arbitrary index values to reach the array access. A specially crafted ELF/DLX object file can trigger this out-of-bounds write when processed by any BFD-consuming tool (objdump, readelf, strip, ld, nm, objcopy). The vulnerability has been demonstrated to achieve arbitrary code execution via a File Stream Oriented Programming (FSOP) attack against glibc FILE structures (stderr), redirecting control flow to system(). Attack scenarios include CI/CD pipelines performing automated binary analysis, developer workstations running objdump/readelf on untrusted binaries, automated security scanning or malware analysis tools invoking binutils, and package build systems processing third-party code. Note: This vulnerability is only exploitable when binutils is built with the DLX backend enabled (typically via --enable-targets=all).
- Impact: Attackers can execute arbitrary code remotely by processing crafted ELF/DLX files, potentially compromising systems running vulnerable binutils tools.
- Remediation: Update to the latest version of GNU binutils with the DLX backend fixed or disable the DLX backend if not needed.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: remote_code_execution
- Requirements: Binutils must be built with DLX backend enabled
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00186
- Epss percentile: 0.08092
- Assignee: [email protected]
- Published at: 2026-07-29T11:16:49Z
- Age in days: 118
- Modified at: 2026-07-30T14:15:31Z
- Public exploits total: 1
- References total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-18220
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, products total, products, oss, projects total, projects, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-787 | Out-of-bounds Write |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/4D4J/objdump-Out-Of-Bounds-write | poc-in-github | 2026-06-22 |
References
| Url | Source | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-18220 | nvd | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2507670 | nvd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-06-22
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts