{"id":"CVE-2024-42381","url":"https://www.cyber-defence.io/tools/cve/CVE-2024-42381","generatedAt":"2026-10-28T03:59:39.702Z","title":"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.","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.)","published":"2024-07-31T06:15:02.000Z","lastModified":"2026-06-17T07:49:22.000Z","status":"Deferred","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":8.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},"cwe":["CWE-830"],"affected":[],"epss":{"score":0.00647,"percentile":0.50805,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (0.65%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://blog.trailofbits.com/2024/07/30/our-audit-of-homebrew/","source":"cve@mitre.org"},{"url":"https://brew.sh/2024/07/30/homebrew-security-audit/","source":"cve@mitre.org"},{"url":"https://github.com/Homebrew/brew/commit/916b37388d3851a8a93a8e9b4adc38873680ead7","source":"cve@mitre.org"},{"url":"https://github.com/Homebrew/brew/pull/17136","source":"cve@mitre.org"},{"url":"https://github.com/Homebrew/brew/releases/tag/4.2.20","source":"cve@mitre.org"},{"url":"https://github.com/Homebrew/brew/tree/237d1e783f7ee261beaba7d3f6bde22da7148b0a","source":"cve@mitre.org"},{"url":"https://github.com/trailofbits/publications/blob/master/reviews/2023-08-28-homebrew-securityreview.pdf","source":"cve@mitre.org"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-42381","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}