CVE-2019-20044
NixOS vulnerability analysis and mitigation

Overview

In Zsh before 5.8, attackers able to execute commands can regain privileges dropped by the --no-PRIVILEGED option. Zsh fails to overwrite the saved uid, so the original privileges can be restored by executing MODULE_PATH=/dir/with/module zmodload with a module that calls setuid() (CVE, ZSH Release).

Technical details

The vulnerability exists in the privilege-dropping mechanism when the PRIVILEGED option is unset. While the shell sets its effective user and group IDs to match their respective real IDs, it fails to properly handle the saved user ID. On affected platforms (including Linux and macOS), when both RUID and EUID were non-zero, it was possible to regain the shell's former privileges by manipulating the EUID or EGID parameters (Debian Security).

Impact

An attacker who can execute commands in a privileged Zsh shell can regain elevated privileges even after they are explicitly dropped using the --no-PRIVILEGED option. This could lead to unauthorized privilege escalation (Gentoo Security).

Mitigation and workarounds

The vulnerability was fixed in Zsh version 5.8. Users should upgrade to this version or later. The fix ensures proper handling of privileges when unsetting the PRIVILEGED option and improves error reporting when privilege dropping fails (Fedora Update).

Community reactions

The vulnerability was considered a "minor vulnerability" by the Zsh development team, though it was still addressed in a security release. Multiple Linux distributions and Apple released security updates to address this issue in their packaged versions of Zsh (ZSH Announce).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management