CVE-2024-42381
Last modified
CVE-2024-42381 is a high-severity vulnerability rated 8.3/10 on the CVSS scale. 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. EPSS estimates a 0.61% chance of exploitation in the next 30 days.
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.)
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-42381?
How severe is CVE-2024-42381?
How do I fix CVE-2024-42381?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-42376SAP Shared Service Framework does not perform necessary auth…6.5
- CVE-2024-42377SAP shared service framework allows an authenticated non-adm…4.3
- CVE-2024-42378Due to weak encoding of user-controlled inputs, eProcurement…6.1
- CVE-2024-42379Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-4238A vulnerability has been found in Tenda AX1806 1.0.0.1 and c…8.8
- CVE-2024-42380The RFC enabled function module allows a low privileged user…4.3
- CVE-2024-42383Use of Out-of-range Pointer Offset vulnerability in Cesanta …9.8
- CVE-2024-42384Integer Overflow or Wraparound vulnerability in Cesanta Mong…7.5
- CVE-2024-42385Improper Neutralization of Delimiters vulnerability in Cesan…7
- CVE-2024-42386Use of Out-of-range Pointer Offset vulnerability in Cesanta …7.5
- CVE-2024-42387Use of Out-of-range Pointer Offset vulnerability in Cesanta …5.3
- CVE-2024-42388Use of Out-of-range Pointer Offset vulnerability in Cesanta …5.3
Are you affected by CVE-2024-42381?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
