CVE-2026-122136

Powerlevel10k before 1.20.19 Symlink Following via Instant Prompt Temporary File

Published Nov 4, 2026 CVSS 4.0 · 4.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Powerlevel10k before version 1.20.19 contains a symlink following issue in the _p9k_dump_instant_prompt routine that allows a local attacker to overwrite writable files through a predictable temporary path. By pre‑creating a symlink named p10k-instant-prompt-output-<user>-<pid> in TMPDIR and guessing the victim’s shell PID, the shell startup routine will truncate the symlink target and overwrite the contents. This flaw is a file system manipulation vulnerability (CWE‑59) that compromises file integrity.

Affected Systems

Any installation of Powerlevel10k prior to release 1.20.19 is affected. The product is provided by romkatv and is commonly used as a Zsh prompt enhancer. Users running older versions should verify their installed version and plan an update.

Risk and Exploitability

The CVSS score of 4.1 indicates a moderate severity. EPSS is not available and the flaw is not listed in the CISA KEV catalog, suggesting limited exploitation history. The vulnerability requires local access and the ability to place a symlink in the shell’s temporary directory, so attackers would need to run code within the victim’s account or obtain sufficient file‑system write permissions. While not remotely exploitable, the potential to overwrite state‑changing files can lead to significant integrity issues for those affected.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Powerlevel10k to version 1.20.19 or later
  • Disable instant prompt functionality by setting the variable POWERLEVEL9K_INSTANT_PROMPT=off (or equivalent) to prevent execution of the vulnerable routine
  • Restrict write permissions in the temporary directory used by Powerlevel10k, or set TMPDIR to a location that is not writable by potential attackers, to block pre‑planting of symlinks

Generated by OpenCVE AI on November 4, 2026 at 22:07 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': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Romkatv
Romkatv powerlevel10k
Vendors & Products Romkatv
Romkatv powerlevel10k
Type Values Removed Values Added
Description 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.
Title Powerlevel10k before 1.20.19 Symlink Following via Instant Prompt Temporary File
Weaknesses CWE-59
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 4.1, 'vector': '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'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 4:59 PM
Reserved
Nov 4, 2026, 6:13 PM
Status
Deferred
Published
Nov 4, 2026, 9:18 PM
Modified
Nov 9, 2026, 5:17 PM