# CVE-2006-6165: ld.so in FreeBSD, NetBSD, and possibly other BSD distributions does not remove certain harmful environment variables, which allows local us…

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2006-11-29T01:00:00.000Z
- Modified: 2026-06-16T22:32:35.827Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- freebsd freebsd: 6.2
- netbsd netbsd: 2.0.4

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <http://www.securityfocus.com/archive/1/452428/100/0/threaded> (mailing-list)
- <http://www.securityfocus.com/archive/1/452371/100/0/threaded> (mailing-list)

## Sources

- CVE List: [CVE-2006-6165](https://www.cve.org/CVERecord?id=CVE-2006-6165), CVE Terms of Use, modified 2025-01-17
- NVD: [CVE-2006-6165](https://nvd.nist.gov/vuln/detail/CVE-2006-6165), Public domain, modified 2026-06-16

---

Page: https://cve.day/CVE-2006-6165 · Whole record: https://cve.day/CVE-2006-6165.json · Rebuilt by cve.day 2026-11-25T22:56:58.721Z
