CVE-2006-6165: Freebsd

High severity, CVSS 7.8. EPSS: 0.4% chance of exploitation in the next 30 days.

ld.so in FreeBSD, NetBSD, and possibly other BSD distributions does not remove certain harmful environment variables, which allows local users to gain privileges by passing certain environment variables to loading processes. NOTE: this issue has been disputed by a third party, stating that it is the responsibility of the application to properly sanitize the environment

Affected products

  • Freebsd Freebsd: version 6.2 only
  • Netbsd Netbsd: version 2.0.4 only

Published 2006-11-29. Last modified 2026-06-16.