CVE-2026-49134: CodexBar privilege escalation in CLI installer

CVE-2026-49134 · Severity: high · CVSS 7.1 · Published 2026-06-01

CodexBar is a macOS utility that includes a command-line interface (CLI) installer. A security flaw in the installer allows a malicious program already on the computer to hijack the installation process. If a user attempts to install the CLI tool and provides their administrator password when prompted, the malicious program can trick the system into running its own commands with full root privileges, potentially leading to a complete system takeover.

Technologies: Steipete CodexBar. Vendors: Steipete.

Quick answers

Is CVE-2026-49134 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-49134 being exploited in the wild.
How severe is CVE-2026-49134?
High severity, with a CVSS score of 7.1, published 1 June 2026.
Which products and versions are affected?
Steipete CodexBar < 0.32.0.
Is there a fix for CVE-2026-49134?
A patch was published on 2026-05-30: Fix merged in pull request 1222 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-49134 attacked?
It is attacked with local access, in a network appliance.
Am I affected by CVE-2026-49134?
Check whether you run Steipete CodexBar at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A local privilege escalation vulnerability exists in the CodexBar CLI installer (bin/install-codexbar-cli.sh) due to insecure temporary file handling (CWE-377). The installer uses `mktemp` to create a shell script in a user-writable directory, populates it with installation commands, and then executes it via AppleScript's `do shell script` with administrator privileges. Because the temporary file remains owned and mutable by the unprivileged user, a malicious process running as the same user can monitor the filesystem and overwrite the script's contents during the window when the user is prompted for credentials. This race condition allows the attacker to execute arbitrary commands as root once the user approves the legitimate elevation prompt. The issue is resolved in version 0.32.0 by moving the command logic into an immutable AppleScript string.

Affected products

  • steipete CodexBar < 0.32.0

Timeline

  • 2026-05-30: patched: Fix merged in pull request 1222
  • 2026-05-31: advisory: Version 0.32.0 released
  • 2026-06-01: disclosed: CVE-2026-49134 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.