CVE-2024-42381
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:HSummary
CVE-2024-42381 is a high-severity Inclusion of Web Functionality from an Untrusted Source (CWE-830) vulnerability in Trailofbits (inferred from references). Its CVSS base score is 8.3 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Supply Chain Compromise (T1195); ranked at the 48th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SC-18 (Mobile Code) and CM-7 (Least Functionality) — see the control section below for these in your framework.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-39586
Vulnerability Data
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…
more
un-sandboxed binary relocation phase, which occurs before a user would expect execution of downloaded package content. (237d1e783f7ee261beaba7d3f6bde22da7148b0a was the tested vulnerable version.)
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Defines acceptable mobile/active code and authorizes/monitors its use, directly blocking inclusion of untrusted web scripts or widgets.
Configures the system to permit only essential functionality, thereby restricting the ability to embed arbitrary external web code.
Requires external service providers to meet the organization's security and privacy requirements before their functionality (e.g., widgets) may be integrated.
Establishes processes to identify and remediate supply-chain weaknesses that would allow untrusted external web components to be incorporated.
Mitigating Controls (NIST CSF 2.0) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.
Contractual requirements can mandate vetting of web sources and prohibit untrusted inclusions.
Due diligence before supplier relationships directly prevents inclusion of untrusted web functionality.
Assessing supplier risks and products reduces the chance of embedding untrusted web widgets or scripts.
Supplier assessments prior to acquisition address the root risk of untrusted web sources.
Integrity checks on acquired software can catch untrusted web functionality before use.
Secure SDLC practices can include policies forbidding inclusion of untrusted external web code.
Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.
Secure architecture principles discourage embedding untrusted content, yet require additional controls for full mitigation.
Security testing can detect the weakness, but does not prevent its introduction during design or coding.
Network security controls can restrict or block untrusted external web content, but do not specifically address inclusion of web widgets.
Web filtering can prevent loading of untrusted web functionality, directly mitigating the weakness.
Application security requirements can mandate vetting of external web components, but do not guarantee technical enforcement.
Secure coding practices can avoid unsafe inclusion of external scripts, but coverage depends on developer adherence.