CVE-2021-38165
NixOS vulnerability analysis and mitigation

Overview

Lynx through version 2.8.9 contains a vulnerability (CVE-2021-38165) where it mishandles the userinfo subcomponent of a URI, allowing remote attackers to discover cleartext credentials because they may appear in Server Name Indication (SNI) data during TLS handshakes. The vulnerability was discovered in August 2021 (Openwall List).

Technical details

The vulnerability stems from Lynx's improper handling of the userinfo part of URIs (e.g., https://user:pass@example.com). When establishing TLS connections, Lynx would include the full URI including credentials in the SNI extension data, which is sent in cleartext during the TLS handshake. This occurs even before the user can respond to certificate validation prompts. The issue was confirmed through packet capture analysis showing credentials being exposed in the SNI data (Openwall List). The vulnerability has a CVSS v3.1 Base Score of 5.3 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability allows remote attackers to discover authentication credentials in cleartext by capturing network traffic during TLS handshakes. This exposure occurs even if the user chooses not to proceed with an untrusted connection, as the SNI data is sent before certificate validation (Openwall List).

Mitigation and workarounds

The vulnerability was fixed in Lynx version 2.9.0dev.9 by adding proper stripping of user/password information from the hostname before using it in SNI data (Lynx Changes). Various distributions have released security updates including Debian (DSA-4953-1) and Fedora (Debian Security, Fedora Update).

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