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.