CVE-2026-49134
Deferred Deferred - Pending Action
Privilege Escalation in CodexBar CLI Installer via Race Condition

Publication date: 2026-06-01

Last updated on: 2026-06-02

Assigner: VulnCheck

Description
CodexBar prior to 0.32.0 contains a privilege escalation vulnerability in the CLI installer that allows local attackers to execute arbitrary commands as root by exploiting a race condition in temporary file handling. The installer creates a temporary file with mktemp, writes a privileged shell payload into it, and executes it with administrator privileges via bash, allowing a same-user local process to rewrite the installer body before the administrator prompt is approved, causing attacker-controlled commands to run as root.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-01
Last Modified
2026-06-02
Generated
2026-06-22
AI Q&A
2026-06-02
EPSS Evaluated
2026-06-20
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
codexbar codexbar to 0.32.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-377 Creating and using insecure temporary files can leave application and system data vulnerable to attack.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

The vulnerability in CodexBar prior to version 0.32.0 allows local attackers to escalate privileges to root by exploiting a race condition in temporary file handling during installation. This can lead to unauthorized root-level command execution on affected systems.

Such unauthorized privilege escalation and potential full system compromise can impact compliance with common security standards and regulations like GDPR and HIPAA, which require protection of sensitive data and secure system access controls. If exploited, this vulnerability could lead to unauthorized access or modification of protected data, violating confidentiality and integrity requirements.

Therefore, organizations using vulnerable versions of CodexBar may face increased risk of non-compliance with these regulations unless the vulnerability is mitigated or patched.

Executive Summary

The vulnerability in CodexBar prior to version 0.32.0 is a privilege escalation issue in its CLI installer. It arises from a race condition in how temporary files are handled during installation. Specifically, the installer creates a temporary file using mktemp, writes a privileged shell payload into it, and then executes this payload with administrator privileges via bash. Because of the race condition, a local attacker running under the same user can rewrite the installer's body before the administrator prompt is approved, causing arbitrary commands controlled by the attacker to be executed as root.

Impact Analysis

This vulnerability allows a local attacker to execute arbitrary commands with root privileges on the affected system. This means the attacker can gain full control over the system, potentially leading to unauthorized access, data theft, system compromise, installation of malware, or disruption of services.

Detection Guidance

This vulnerability arises from the CodexBar CLI installer creating and executing a temporary file with elevated privileges using mktemp, which can be manipulated by a same-user local attacker. Detection involves checking for the presence of vulnerable CodexBar versions prior to 0.32.0 and monitoring for suspicious temporary file creation or modification during installation.

You can detect if the vulnerable installer is present by checking the installed CodexBar version:

  • codexbar --version

To monitor for suspicious temporary file activity during installation, you might use commands like:

  • lsof +D /tmp | grep mktemp
  • inotifywait -m /tmp

Additionally, reviewing installer logs or running the installer in a controlled environment while monitoring file system changes can help detect exploitation attempts.

Mitigation Strategies

The primary mitigation is to upgrade CodexBar to version 0.32.0 or later, where the vulnerability has been fixed by removing the use of mutable temporary files in the CLI installer.

If upgrading immediately is not possible, avoid running the vulnerable installer in environments where untrusted local users have access, as the exploit requires local same-user code execution.

The fix replaces the temporary file approach with an AppleScript that constructs privileged commands in memory, eliminating the race condition.

Ensure that the installer prompt is only approved by trusted users and consider monitoring for unusual privilege escalation attempts during installation.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-49134. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart