---
id: CVE-2026-49134
title: CodexBar < 0.32.0 Privilege Escalation via CLI Installer Temp File
summary: >-
  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
  create…
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-377
vendor: steipete
product: CodexBar
affected:
  - CodexBar < 0.32.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-06-02T12:38:47.403866Z'
exploitAvailable: true
published: '2026-06-01'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T14:04:45.440Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-49134'
references:
  - url: 'https://github.com/steipete/CodexBar/releases/tag/v0.32.0'
    label: CodexBar 0.32.0 Release Notes
  - url: 'https://github.com/steipete/CodexBar/pull/1222'
  - url: >-
      https://github.com/steipete/CodexBar/commit/dbc944d46cd4cf7877d1ca47c44556fe573b46e8
  - url: >-
      https://www.vulncheck.com/advisories/codexbar-privilege-escalation-via-cli-installer-temp-file
tags:
  - cve.org
  - exploit-available
epss: 0.0027
epssPercentile: 0.19265
ingestedAt: '2026-11-08T14:51:22.389Z'
---

## Overview

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.

## Affected

- `CodexBar < 0.32.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
