CVE-2023-40303
NixOS vulnerability analysis and mitigation

Overview

GNU inetutils before version 2.5 contains a privilege escalation vulnerability (CVE-2023-40303) due to unchecked return values of set*id() family functions in multiple components including ftpd, rcp, rlogin, rsh, rshd, and uucpd. The vulnerability was discovered in July 2023 and affects systems where these components are installed (GNU Bug Report, NVD).

Technical details

The vulnerability stems from the failure to verify return values from privilege-dropping functions such as setuid(), setgid(), seteuid(), and setguid() in multiple components. This oversight is particularly relevant when a process attempts to drop privileges before allowing an ordinary user to control its activities. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements but high potential impact (NVD).

Impact

The vulnerability could lead to privilege escalation, potentially allowing attackers to execute code with elevated privileges. In the case of rshd, if the daemon runs as root, privilege escalation is possible as any user logging in after a set*id() failure would have their session started as root. For rlogin, local privilege escalation is possible as the binary is setUID root, and for uucpd, there is potential for remote privilege escalation to root for already valid users (GNU Bug Report).

Mitigation and workarounds

The vulnerability has been fixed in GNU inetutils version 2.5, released on December 29, 2023. The fix involves adding proper return value checking for all set*id() family functions. Various distributions have also backported the fix, including Debian which patched the issue in their LTS release (Debian Advisory, GNU Patch).

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-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

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