Security Resilience

CVE-2024-27303

LPE in Electron-Builder ≤ 24.13.2

Published
06 March 2024
Modified
17 June 2026
Patch / advisory
CVSS Score v3.1 7.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.0028 21th percentile
Risk Priority 52 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-27303 is a high-severity Untrusted Search Path (CWE-426) vulnerability in Electron-Builder. Its CVSS base score is 7.3 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 21th 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 CM-6 (Configuration Settings) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

electron-builder is a solution to package and build a ready for distribution Electron, Proton Native app for macOS, Windows and Linux. A vulnerability that only affects eletron-builder prior to 24.13.2 in Windows, the NSIS installer makes a system call to…

more

open cmd.exe via NSExec in the `.nsh` installer script. NSExec by default searches the current directory of where the installer is located before searching `PATH`. This means that if an attacker can place a malicious executable file named cmd.exe in the same folder as the installer, the installer will run the malicious file. Version 24.13.2 fixes this issue. No known workaround exists. The code executes at the installer-level before the app is present on the system, so there's no way to check if it exists in a current installer.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1195 Supply Chain Compromise Initial Access
Adversaries may manipulate products or product delivery mechanisms prior to receipt by a final consumer for the purpose of data or system compromise.
T1195.001 Compromise Software Dependencies and Development Tools Initial Access
Adversaries may manipulate software dependencies and development tools prior to receipt by a final consumer for the purpose of data or system compromise.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1546.018 Python Startup Hooks Persistence
Adversaries may achieve persistence by leveraging Python’s startup mechanisms, including path configuration (`.
T1547.008 LSASS Driver Persistence
Adversaries may modify or add LSASS drivers to obtain persistence on compromised systems.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-4525Shared CWE-426, CWE-427
CVE-2025-5180Shared CWE-426, CWE-427
CVE-2026-3787Shared CWE-426, CWE-427
CVE-2026-54672Same product: Electron Electron-Builder
CVE-2026-18657Shared CWE-427
CVE-2024-38668Shared CWE-427
CVE-2023-46814Shared CWE-427
CVE-2024-24916Shared CWE-427
CVE-2023-48677Shared CWE-427
CVE-2025-66476Shared CWE-427

Affected Assets

electron
electron-builder
≤ 24.13.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 2 hardening rules · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)

—

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Secure baseline settings can enforce absolute, organization-controlled paths for critical resources.

Enforces approved authorizations so that only intended actors can place or modify elements in the search path.

Limits privileges so unintended actors cannot write to or control directories in the product's search path.

Restricts logical and physical access to change system configuration, including search-path settings and directories.

Least-functionality configuration can prohibit unapproved directories or executables from being reachable via search paths.

Engineering principles such as trusted paths, complete mediation, and least privilege directly require hard-coded or validated search paths instead of external ones.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-05 full match
blocks

Preventing execution of unauthorized code directly blocks the malicious binaries that an untrusted search path would load.

PR.PS-06 mostly match
blocks

Secure development practices include avoiding or sanitizing externally influenced search paths in application code.

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce safe search paths and restrict environment variables that enable the weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can discover search-path issues but does not itself prevent them in production code.

prevents

Training in secure coding practices can make developers aware of the risks of relying on externally-supplied search paths (PATH, LD_PRELOAD, APPHOME) and prompt them to use absolute paths or sanitize the environment, but this is a fallible human-practice effect on a specific implementation defect, with the strongest control being code review and security testing rather than awareness.

prevents

Secure coding standards require absolute paths or integrity-checked search paths, directly mitigating CWE-426.

prevents

A.8.30 carries its effect through the secure design, coding and testing practices (8.25–8.29) its contract requires of the supplier, so a faithful implementation reduces ordinary implementation-level software CWEs like CWE-426 in delivered code, but the practice is fallible and the clause sits at its declared ceiling of `partial`.

blocks

A.8.7's application allowlisting (guidance item a) can prevent the malicious binary an attacker plants in the search path from being installed or executed, which blocks a meaningful slice of CWE-426 exploitation; however, the weakness is a code-level defect in how the target program resolves paths, and allowlisting does not reach cases where the attacker abuses existing legitimate binaries in writable directories, hijacks DLLs, or controls the search path itself through other means.

finds

A.8.8's reach is DISCLOSURE — it identifies vulnerabilities via published advisories, vendor feeds, and scanning against known-CVE databases. CWE-427 does surface as CVEs (DLL hijacking, dependency confusion, binary planting), so A.8.8 finds the disclosed minority of instances in third-party components and published products, but it does not read source code (that is A.8.28/A.8.29) and cannot find CWE-427 in custom or unpublished code, capping the rung at `partial`.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

No rule maps to these weaknesses at full or mostly. Tick the option above to see the partial mappings.

Oracle Linux 8 (1 partial rule)
  • V-248577 OL 8 must enable kernel parameters to enforce Discretionary Access Control (DAC) on symlinks. blocks CWE-427

References