Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local account on shared host
-
ExploitPre-plant symlink at predictable TMPDIR path
-
ExecutionVictim starts zsh with instant prompt
-
ImpactShell 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Powerlevel10K
View allLocal code execution in Powerlevel10k before 1.20.19 comes from the bundled gitstatus installer, which falls back to reu
Terminal escape sequence injection in powerlevel10k (all versions through 1.20.17) allows any attacker who controls a pa
EUVD-2026-117090
GHSA-v68w-4wfv-crrh
NVD
CVE.org
EPSS
Exploit-DB