CVE-2021-40491
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-40491 affects the FTP client in GNU Inetutils versions before 2.2. The vulnerability stems from the client's failure to validate addresses returned by PASV/LSPV responses to ensure they match the server address. This security issue was discovered in 2021 and is similar to CVE-2020-8284 found in curl (NVD, GNU Bug Report).

Technical details

The vulnerability is classified as CWE-345 (Insufficient Verification of Data Authenticity) with a CVSS v3.1 Base Score of 6.5 (Medium). The technical issue lies in the FTP client's trust of host addresses received in PASV responses without proper validation. This implementation flaw allows the client to accept and connect to any IP address provided in the server's response (NVD).

Impact

A malicious FTP server can exploit this vulnerability to trick the client into connecting to arbitrary IP addresses and ports. This could enable the attacker to make the FTP client scan ports and extract service banners from the client's private network, potentially exposing sensitive internal network information (GNU Bug Report).

Mitigation and workarounds

The vulnerability was fixed in GNU Inetutils version 2.2 with a patch that implements address validation for PASV/LSPV responses. The fix ensures that returned addresses match the server's address before establishing connections. Users are advised to upgrade to Inetutils version 2.2 or later (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-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 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