8.3high
os/linux/elf.rb in Homebrew brew before 4.2.20 uses ldd to load ELF files obtained from untrusted sources, which allows attackers to achiev…
- Severity
- 8.3high CVSS:3.1 by mitre
- Exploit likelihood
- 0.65% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
os/linux/elf.rb in Homebrew brew before 4.2.20 uses ldd to load ELF files obtained from untrusted sources, which allows attackers to achieve code execution via an ELF file with a custom .interp section. NOTE: this code execution would occur during an un-sandboxed binary relocation phase, which occurs before a user would expect execution of downloaded package content. (237d1e783f7ee261beaba7d3f6bde22da7148b0a was the tested vulnerable version.)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| homebrew brew | before 4.2.20 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
os/linux/elf.rb in Homebrew brew before 4.2.20 uses ldd to load ELF files obtained from untrusted sources, which allows attackers to achieve code execution via an ELF file with a custom .interp section. NOTE: this code execution would occur during an un-sandboxed binary relocation phase, which occurs before a user would expect execution of downloaded package content. (237d1e783f7ee261beaba7d3f6bde22da7148b0a was the tested vulnerable version.)
NVD (es)
os/linux/elf.rb en Homebrew Brew anterior a 4.2.20 usa ldd para cargar archivos ELF obtenidos de fuentes no confiables, lo que permite a los atacantes lograr la ejecución de código a través de un archivo ELF con una sección .interp personalizada. NOTA: la ejecución de este código ocurriría durante una fase de reubicación binaria sin espacio aislado, que ocurre antes de que un usuario espere la ejecución del contenido del paquete descargado. (237d1e783f7ee261beaba7d3f6bde22da7148b0a fue la versión vulnerable probada).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42381 changed 2024-07-31 | CVE Terms of Use |
| NVD | CVE-2024-42381 changed 2026-06-17 | Public domain |