CVE-2022-0563
NixOS vulnerability analysis and mitigation

Overview

A flaw was found in the util-linux chfn and chsh utilities when compiled with Readline support, identified as CVE-2022-0563. The vulnerability was discovered in February 2022 and affects util-linux versions prior to 2.37.4. The issue stems from the Readline library's use of the 'INPUTRC' environment variable to get a path to the library config file (Kernel Mailing List).

Technical details

The vulnerability occurs when the Readline library cannot parse the specified config file, causing it to print an error message containing data from the file. The issue has a CVSS v3.1 Base Score of 5.5 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. The vulnerability is classified under CWE-209 (Generation of Error Message Containing Sensitive Information) (NVD Database).

Impact

This vulnerability allows an unprivileged user to read root-owned files, potentially leading to privilege escalation. The exploitation is particularly concerning when chfn(8) is used with enabled CHFN_RESTRICT setting in /etc/login.defs, though this setting may be disabled by default (Kernel Mailing List).

Mitigation and workarounds

The vulnerability was fixed in util-linux version 2.37.4. Users and organizations are advised to upgrade to this version or later to mitigate the vulnerability. The fix was released as part of the util-linux v2.37.4 update (Kernel Mailing List, Gentoo Security).

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-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026
CVE-2026-22184MEDIUM4.6
  • NixOSNixOS
  • java-1.8.0-openjdk-demo
NoYesJan 07, 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