CVE-2026-122137

Powerlevel10k before 1.20.19 Insecure Temporary Directory via gitstatus Installer

Published Nov 4, 2026 CVSS 4.0 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Powerlevel10k before 1.20.19 contains an insecure temporary directory vulnerability in the bundled gitstatus/install script that reuses attacker-creatable directories when mktemp fails. Local attackers can pre-create the predictable gitstatus-install.tmp directory to replace the extracted gitstatusd binary, which then executes with the victim's privileges.

Analysis

AI-generated

Technical impact

Powerlevel10k before 1.20.19 contains a flaw in its bundled gitstatus installer in which the temporary directory used during extraction is insecure. When mktemp fails, the installer reuses a predictable directory that an attacker can create, allowing the attacker to replace the gitstatusd binary. When the installer runs, the substituted binary is executed with the privileges of the user installing Powerlevel10k, giving local code execution or privilege escalation. The weakness is a CWE-377 temporary file or directory race condition.

Affected Systems

The affected products are the romkatv gitstatus and Powerlevel10k themes. Any installation of Powerlevel10k before version 1.20.19 that includes the bundled gitstatus installer is vulnerable. This includes the gitstatus/install script referenced in version 1.20.0 and earlier.

Risk and Exploitability

The vulnerability has a CVSS score of 5.4, reflecting moderate severity. The exploit requires local access: the attacker must be able to run the gitstatus installer as a local user or a user with write access to the temporary directory path. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog. Because the threat vector is local and the attacker must have file‑system access during installation, the probability of widespread exploitation is limited, but environments with automated or unattended installs could be at risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Powerlevel10k to version 1.20.19 or later, which removes the insecure temporary directory logic.
  • If an update is not immediately possible, manually edit the gitstatus/install script to create the temporary directory using a secure method such as `mktemp -p /tmp` or by creating a unique, non‑predictable directory and verifying the result before extracting the binary.
  • Verify that the installer and any related scripts run only in a controlled, non‑privileged context and audit the temporary directory handling to ensure no insecure paths are used.

Generated by OpenCVE AI on November 4, 2026 at 21:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Romkatv
Romkatv gitstatus
Romkatv powerlevel10k
Vendors & Products Romkatv
Romkatv gitstatus
Romkatv powerlevel10k
Type Values Removed Values Added
Description Powerlevel10k before 1.20.19 contains an insecure temporary directory vulnerability in the bundled gitstatus/install script that reuses attacker-creatable directories when mktemp fails. Local attackers can pre-create the predictable gitstatus-install.tmp directory to replace the extracted gitstatusd binary, which then executes with the victim's privileges.
Title Powerlevel10k before 1.20.19 Insecure Temporary Directory via gitstatus Installer
Weaknesses CWE-377
References
Metrics cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 5.4, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 4:59 PM
Reserved
Nov 4, 2026, 6:13 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 9:18 PM
Modified
Nov 12, 2026, 9:30 PM