CVE-2026-54672: electron-updater: Uncontrolled search path elements within `AppImage` built by `app-builder-lib`

Published Jun 30, 2026
·
Updated

Summary

AppImage targets built by app-builder-lib could use an empty path component when setting the LDLIBRARYPATH environment variable at runtime. This causes the current working directory to be added to the dynamic linker search path, which may allow an attacker to execute arbitrary code by placing a malicious shared library in the directory from which the AppImage is launched.

This vulnerability is the same class as CVE-2024-41817.

Details

The vulnerability existed in two independent code paths within app-builder-lib (toolset 1.0.0) and through upstream dependency app-builder-bin (toolset 0.0.0).

Path 1 — Modern static runtime (AppRun generated by TypeScript)

The AppRun script generated by app-builder-lib contained this line:

bash export LDLIBRARYPATH="${APPDIR}/usr/lib:${LDLIBRARYPATH}"

When LDLIBRARYPATH is not set in the environment at launch time, this evaluates to:

/path/to/app.AppDir/usr/lib:

The trailing : is treated by the dynamic linker as an empty path component, which resolves to the current working directory. If an attacker can place a malicious shared library (e.g., libfoo.so) in the directory from which the AppImage is executed, that library will be loaded in place of the legitimate one, resulting in arbitrary code execution.

The same issue affected PATH, XDGDATADIRS, and GSETTINGSSCHEMADIR in the same script.

bash export LDLIBRARYPATH="${APPDIR}/usr/lib${LDLIBRARYPATH:+:${LDLIBRARYPATH}}"

Path 2 — Legacy FUSE2 toolset (app-builder-bin)

AppImage targets built using the legacy FUSE2 toolset (toolsets.appimage = "0.0.0") delegated AppRun script generation to the app-builder-bin Go binary, which contained the same vulnerable template:

https://github.com/develar/app-builder/blob/7004925f95d8f034fc88d7e782c9aa7583debb8e/pkg/package-format/appimage/templates/AppRun.sh#L27

Impact

An attacker with the ability to write files to the directory from which a vulnerable AppImage is executed can cause arbitrary shared libraries to be loaded into the application process, resulting in arbitrary code execution with the privileges of the user running the AppImage.

Affected Versions

This was fully resolved in app-builder-lib@26.15.0 (commit 01b8ba979, PR #9829) when app-builder-bin was removed from the dependency tree entirely and all AppImage construction was migrated to the TypeScript implementation.

Workarounds

Set LDLIBRARYPATH to a non-empty value before launching the AppImage, so that the concatenation does not produce an empty path component. Alternatively, avoid running AppImage files from world-writable directories such as /tmp.

Other sources

electron-updater allows for automatic updates for Electron apps. Prior to 26.15.0, AppImage targets built by app-builder-lib could use an empty path component when setting the LDLIBRARYPATH environment variable at runtime. This causes the current working directory to be added to the dynamic linker search path, which may allow an attacker to execute arbitrary code by placing a malicious shared library in the directory from which the AppImage is launched. This issue has been fixed in version 26.15.0.

MITRE

Affected Software

3 affected componentsFixes available
electron-updater<26.15.0
npm/app-builder-lib<26.15.0
26.15.0
Electron Electron-builder Node.js<26.15.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/app-builder-lib to a version that resolves this vulnerability.

    Fixed in 26.15.0
  2. Upgrade

    Upgrade app-builder-lib to a version that resolves this vulnerability.

    Fixed in 26.15.0
  3. Configuration

    Before launching the AppImage, set LD_LIBRARY_PATH to a non-empty value so that the runtime concatenation does not produce an empty path component (which would otherwise resolve to the current working directory).

    AppImage/AppRun (environment at launch) LD_LIBRARY_PATH = non-empty value

Event History

Jun 30, 2026
CVE Published
via MITRE·10:15 PM
Data Sourced
via MITRE·10:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
RemedyAffected Software
Jul 24, 2026
Advisory Published
via GitHub·02:00 PM
Data Sourced
via GitHub·02:00 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-54672?

CVE-2026-54672 has a high severity score of 7.8.

2

How do I fix CVE-2026-54672?

To fix CVE-2026-54672, upgrade to electron-updater version 26.15.0 or later.

3

What are the potential impacts of CVE-2026-54672?

CVE-2026-54672 can lead to security risks such as arbitrary code execution due to uncontrolled search path elements.

4

What versions of electron-updater are affected by CVE-2026-54672?

Versions of electron-updater prior to 26.15.0 are affected by CVE-2026-54672.

5

Is CVE-2026-54672 specific to certain operating systems?

CVE-2026-54672 affects Electron apps built using app-builder-lib on any operating system that supports AppImage.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203