Skip to main content

Powerlevel10k CVE-2026-122136

| EUVDEUVD-2026-117090 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-11-04 VulnCheck GHSA-v68w-4wfv-crrh
4.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain local account on shared host
  2. Exploit
    Pre-plant symlink at predictable TMPDIR path
  3. Execution
    Victim starts zsh with instant prompt
  4. Impact
    Shell truncates and overwrites target file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

The attacker needs a local account on the same system and the ability to write into the victim's TMPDIR (typically a shared /tmp), where they pre-plant a symlink at the predictable path p10k-instant-prompt-output-<user>-<pid>. Because the path embeds the victim's shell PID, the attacker must guess/win a race against that PID (the AT:P attack requirement), and the target file must be one the victim can write. The flaw only triggers when the victim subsequently starts a new zsh shell with Powerlevel10k's instant prompt feature (default) in a version before 1.20.19 - this is the passive user interaction (UI:P). Limiting factors: no remote vector (AV:L); exploitation fails if each user has a private/non-shared TMPDIR not writable by the attacker; impact is bounded to files the victim can already overwrite, so there is no privilege escalation unless the victim is themselves privileged; and the PID-guessing race makes reliable exploitation non-trivial.

Impact

This is a medium-severity, local integrity flaw whose real-world priority is modest. The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:L/UI:P, base 4.1) tells a consistent story: exploitation requires local access with an attacker-held account (PR:L), a specific attack condition the attacker does not fully control - guessing the victim's shell PID and winning a pre-plant race (AT:P) - and passive victim interaction, namely the victim starting a new shell (UI:P). Impact is integrity-only (VI:H; VC:N, VA:N): the attacker can overwrite files the victim can already write, with no confidentiality loss and no direct availability impact, and no privilege escalation unless the victim themselves is privileged. The decision signals reinforce a non-urgent posture: the vuln.today priority label is 'this_month' (not act_now/emergency), there is no CISA KEV listing, no EPSS score was provided, and no public exploit was identified at time of analysis. Note a data conflict: the input Tags label this 'Information Disclosure', but the CVSS vector and CWE-59 (symlink following) describe a file-overwrite/integrity issue, not disclosure - treat the tag as mislabeled. Net: a genuine but constrained bug that chiefly matters on shared multi-user hosts; single-user developer workstations (the dominant p10k deployment) have no hostile local user to exploit it.

Exploit ScenarioDerived

On a shared multi-user host, a local attacker with their own account pre-plants a symlink at the predictable path p10k-instant-prompt-output-<victim>-<pid> in the shared TMPDIR, pointing at a file the victim can write. When the victim opens a new zsh shell with Powerlevel10k's instant prompt active, startup truncates and overwrites the symlink target. No public exploit code was identified at time of analysis.

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

Powerlevel10k releases before 1.20.19 let a local attacker who can write into a shared TMPDIR overwrite files the victim can write, by pre-planting a symlink at the predictable instant-prompt cache path p10k-instant-prompt-output-<user>-<pid>; the next zsh startup with instant prompt enabled truncates whatever the link points to. Only local users on the same host are affected, the attacker must win a race against the victim's shell PID and the target must already be writable by the victim, so the realistic outcome is data destruction/overwrite rather than privilege escalation. Severity is medium (vendor score 4.1; independent assessment CVSS 3.1 AV:L/AC:H/PR:L/UI:R, integrity-only), there is no CISA KEV entry, and no public exploit code is referenced in the available intelligence; patched code ships in 1.20.19.

RemediationAI

Upgrade Powerlevel10k to 1.20.19 or later, which is the vendor-released patch implementing the fix in commit https://github.com/romkatv/powerlevel10k/commit/7ddd1b2715c3844275214347a3572ac1fdd6dc39 (exclusive-create sysopen plus instant-prompt format bump to version 48); after upgrading, open a fresh shell so the cached prompt regenerates. If an upgrade cannot be applied immediately, the most direct compensating control is to give each user a private TMPDIR that other accounts cannot write to (for example exporting TMPDIR to a directory under the user's home before zsh starts), which removes the attacker's ability to plant the symlink but changes where every program in that session writes temporary files and may break workflows that expect /tmp. Disabling Powerlevel10k's instant prompt feature also removes the vulnerable write path, at the cost of slower interactive shell startup. Both workarounds reduce exposure only; the upstream fix is the complete resolution.

Affected VersionsENISA

powerlevel10k 0 <1.20.19

Affected Packages

euvd powerlevel10k fix: 1.20.19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package 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 theme that caches an "instant prompt" so the shell renders immediately at startup. In _p9k_dump_instant_prompt (internal/p10k.zsh, around lines 6445-6482 in v1.20.0), the code created its output file with : > $__p9k_instant_prompt_output and then redirected stdout to the same path with 1>$__p9k_instant_prompt_output. Both the truncating redirect and the subsequent open follow symbolic links, so a symlink planted at that path is silently followed and the linked-to file is truncated and overwritten. The path is built from the username and the current shell PID, making it predictable to any local user who can list or write into the same TMPDIR. This is CWE-59 (link following / insecure temporary file) rather than a memory-safety issue. The upstream fix (commit 7ddd1b2) replaces the redirect with sysopen -wo creat,excl -u fd_out -- $__p9k_instant_prompt_output, i.e. an O_CREAT|O_EXCL open via zsh/system, so the call fails outright if anything already exists at that path and the function returns without writing; the shell's fds are then restored on the same descriptor. The commit also bumps the instant-prompt format version from 47 to 48 and P9K_VERSION to 1.20.19, which forces regeneration of any previously cached instant prompt. Note the fix relies on exclusive creation rather than O_NOFOLLOW, and the trigger path exists only when instant prompt (enabled by default) is active.

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 4.1 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.4 MEDIUM

Local attacker needs own account and must win a PID-guessing symlink race (AC:H), victim must start a shell (UI:R), and impact is file overwrite only (I:H; C/A none).

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

Powerlevel10k before 1.20.19 contains a symlink following vulnerability in _p9k_dump_instant_prompt that allows local attackers to overwrite victim-writable files via a predictable temporary path. Attackers can pre-plant symlinks at p10k-instant-prompt-output-<user>-<pid> in TMPDIR, guessing the victim's shell PID, so shell startup truncates and overwrites targeted files.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
very popular zsh theme, but on developer workstations not servers
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

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

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