Skip to main content

Powerlevel10k CVE-2026-122137

| EUVDEUVD-2026-117091 MEDIUM
Insecure Temporary File (CWE-377)
2026-11-04 VulnCheck GHSA-pfwr-f3c5-mfgm
5.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privileged access on shared host
  2. Exploit
    Pre-create predictable gitstatus-install.tmp directory with malicious binary
  3. Execution
    Victim runs gitstatus installer and mktemp fails
  4. Impact
    Planted gitstatusd executes with victim privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Secure temp file creation
Exploitation Conditions

Exploitation requires: (1) local access to the host with at least low privileges so the attacker can pre-create the predictable gitstatus-install.tmp directory and plant a malicious binary; (2) the victim must actually run Powerlevel10k's bundled gitstatus/install script (installation or update of gitstatusd), supplying the required user interaction; and (3) the script's internal mktemp call must fail, because only then does the vulnerable fallback reuse the attacker-creatable directory (this is the AT:P attack requirement, not an attacker-controlled step per the available sources). Limiting factors: it is local-only (not remotely reachable), depends on a predictable-path reuse that only occurs on mktemp failure, and affects only versions before 1.20.19. The complete fix is updating to the patched version, as the vendor commits force removal and recreation of the directory.

Impact

This is a genuine but conditional local privilege/code-execution issue rather than a broadly exploitable remote flaw. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L/UI:P) consistently points to a low-urgency profile: the attacker needs local access with at least low privileges, a specific attack requirement must hold (the script's mktemp call must fail so the fallback to the predictable gitstatus-install.tmp directory is used), and the victim must passively run the gitstatus installer. The vuln.today decision label is 'this_month', not act_now or emergency, which aligns with the high-complexity/local profile. No EPSS score and no KEV listing were provided, so there is no signal of widespread or active exploitation - status is 'no public exploit identified at time of analysis' (the GitHub issue and VulnCheck advisory references are reporting/advisory material, not verified working exploit code). The impact side is serious where it triggers: VC:H/VI:H/VA:H reflect that a replaced gitstatusd binary runs with the victim's full privileges. Net: a real, worth-patching issue but driven by local preconditions and an mktemp-failure requirement, not a high-CVSS-but-remote emergency. The CVSS score (5.4) and the realistic preconditions are in agreement; no major conflicting signals, though the absence of EPSS/KEV means exploitation likelihood is inferred, not measured.

Exploit ScenarioDerived

On a shared or multi-user host, a local low-privileged attacker pre-creates the predictable gitstatus-install.tmp directory and plants a malicious gitstatusd binary. When the victim runs Powerlevel10k's bundled gitstatus installer and the internal mktemp call fails, the script reuses the attacker-controlled directory instead of a fresh secure one, and the planted binary then executes with the victim's privileges. No verified public exploit code was provided in the input; a GitHub issue and VulnCheck advisory document the flaw.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 04, 2026

Local code execution in Powerlevel10k before 1.20.19 comes from the bundled gitstatus installer, which falls back to reusing a predictable gitstatus-install.tmp directory when its mktemp call fails. A low-privileged local user who pre-creates that directory can swap in a tampered gitstatusd binary that then runs with the victim's privileges the next time the victim runs the installer or updater. Exploitation is conditional - it is local-only, depends on the mktemp failure and on the victim invoking the script - and no CISA KEV listing or public exploit was identified at time of analysis.

RemediationAI

Update Powerlevel10k to 1.20.19 or later, which incorporates the installer fix; the corresponding upstream commits are https://github.com/romkatv/powerlevel10k/commit/98bd39fd335e3f9f560e48e5c1957cb2a6a212c4 and https://github.com/romkatv/gitstatus/commit/5433ecbb9a572d6c92be9feb33642395fccc782b, both replacing the permissive mkdir -p with a forced removal followed by a non-recursive mkdir so an existing directory aborts the install rather than being reused. The available sources document updating as the complete fix and describe no separate vendor workaround; because exploitation requires the victim to run the bundled gitstatus installer or updater, hosts that cannot move to 1.20.19 immediately can limit exposure by deferring installer/updater runs on machines shared with untrusted local users until the patched version is deployed.

Affected VersionsENISA

powerlevel10k 0 <1.20.19
gitstatus 0 ≤1.5.5

Affected Packages

euvd gitstatus no fix
euvd powerlevel10k fix: 1.20.19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Powerlevel10k is a zsh prompt theme that ships a bundled copy of romkatv's gitstatus, whose install script fetches and extracts the gitstatusd daemon binary into a temporary working directory. The flaw is CWE-377 (insecure temporary file/directory): as shown in the referenced source, the script used mkdir -p -- "$tmpdir", which silently succeeds when the attacker-created directory already exists, so extraction proceeds into content the attacker controls. The upstream fix changes this to command rm -rf -- "$tmpdir" || command mkdir -- "$tmpdir", forcing removal and non-recursive creation so an existing directory causes failure instead of reuse. Both CPE entries - cpe:2.3:a:romkatv:powerlevel10k and cpe:2.3:a:romkatv:gitstatus - are implicated because the vulnerable script is embedded in the plugin and also maintained in the standalone gitstatus project. The trigger is narrow: per the assessed vector the attacker is local with low privileges (AV:L/PR:L) and must induce significant user interaction (UI:R), and the vulnerable fallback branch is reached only when mktemp fails, which the attacker does not control (AT:P/AC:H). Impact is confined to the vulnerable host (S:U) with high confidentiality, integrity and availability consequences once the substituted binary executes.

Know when Powerlevel10K gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.4 MEDIUM
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
vuln.today AI 6.7 MEDIUM

Local access with low privileges (PR:L), high complexity plus required mktemp-failure condition (AC:H), victim must run the installer (UI:R); planted binary runs as the victim giving full C/I/A impact.

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
very popular zsh prompt theme, but mostly on developer workstations not production fleets
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy