app-builder-lib@20.25.0

electron-builder lib

  • latest version

    26.15.3

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    1 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the app-builder-lib package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Uncontrolled Search Path Element

    app-builder-lib is an electron-builder lib

    Affected versions of this package are vulnerable to Uncontrolled Search Path Element through the execWine/executeAppBuilder command path in builder-util and app-builder-lib on non-Windows systems. An attacker can execute attacker-controlled binaries by influencing the Windows tool runner used for packaging and verification, such as when the build process launches Wine-backed helper commands for installer creation or app verification. The affected code invokes the bundled app-builder-bin helper and Wine toolchain to run packaging utilities and test installers, so a malicious or compromised build input can cause the build host to run arbitrary commands during artifact generation. This can compromise the build machine and tamper with generated installers and packages.

    Notes

    • The legacy toolsets.wine = "0.0.0" path is only used on macOS; Linux falls back to the system wine binary instead of the bundled Mac bundle.

    Workarounds

    • Set LD_LIBRARY_PATH to a non-empty value before launching the AppImage, so the runtime path concatenation does not add the current working directory to the dynamic linker search path.
    • Avoid running vulnerable AppImage files from world-writable directories such as /tmp, so an attacker cannot place a malicious shared library in the launch directory.

    How to fix Uncontrolled Search Path Element?

    Upgrade app-builder-lib to version 26.15.0 or higher.

    <26.15.0
    • H
    Untrusted Search Path

    app-builder-lib is an electron-builder lib

    Affected versions of this package are vulnerable to Untrusted Search Path due to the NSIS installer making a system call to open cmd.exe via NSExec in the .nsh installer script. 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.

    Notes:

    1. This is only exploitable on Windows machines.

    2. NSExec by default searches the current directory of where the installer is located before searching PATH.

    How to fix Untrusted Search Path?

    Upgrade app-builder-lib to version 24.13.2 or higher.

    <24.13.2