{"id":"CVE-2024-42381","state":"PUBLISHED","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 c","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.)","publishedAt":"2024-07-31T00:00:00.000Z","updatedAt":"2024-07-31T17:03:46.038Z","severity":{"score":8.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:R","source":"mitre"},"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/Homebrew/brew/tree/237d1e783f7ee261beaba7d3f6bde22da7148b0a","https://github.com/trailofbits/publications/blob/master/reviews/2023-08-28-homebrew-securityreview.pdf","https://blog.trailofbits.com/2024/07/30/our-audit-of-homebrew/","https://brew.sh/2024/07/30/homebrew-security-audit/","https://github.com/Homebrew/brew/commit/916b37388d3851a8a93a8e9b4adc38873680ead7","https://github.com/Homebrew/brew/releases/tag/4.2.20","https://github.com/Homebrew/brew/pull/17136"],"weaknesses":["CWE-830"],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/42xxx/CVE-2024-42381.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-42381","state":"PUBLISHED","datePublished":"2024-07-31T00:00:00.000Z","dateUpdated":"2024-07-31T17:03:46.038Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2024-07-31T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/Homebrew/brew/tree/237d1e783f7ee261beaba7d3f6bde22da7148b0a"},{"url":"https://github.com/trailofbits/publications/blob/master/reviews/2023-08-28-homebrew-securityreview.pdf"},{"url":"https://blog.trailofbits.com/2024/07/30/our-audit-of-homebrew/"},{"url":"https://brew.sh/2024/07/30/homebrew-security-audit/"},{"url":"https://github.com/Homebrew/brew/commit/916b37388d3851a8a93a8e9b4adc38873680ead7"},{"url":"https://github.com/Homebrew/brew/releases/tag/4.2.20"},{"url":"https://github.com/Homebrew/brew/pull/17136"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AC:H/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:R","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.3,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2024-07-31T05:40:14.432Z"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"homebrew","product":"brew","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"4.2.20","versionType":"custom"}],"cpes":["cpe:2.3:a:homebrew:brew:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-31T16:56:17.154538Z","id":"CVE-2024-42381","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-830","type":"CWE","lang":"en","description":"CWE-830 Inclusion of Web Functionality from an Untrusted Source"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-31T17:03:46.038Z"}}]}}}