CVE-2002-1476: NetBSD - Buffer Overflow
- Cve: CVE-2002-1476
- Name: NetBSD - Buffer Overflow
- Description: Buffer overflow in setlocale in libc on NetBSD 1.4.x through 1.6, and possibly other operating systems, when called with the LC_ALL category, allows local attackers to execute arbitrary code via a user-controlled locale string that has more than 6 elements, which exceeds the boundaries of the new_categories category array, as exploitable through programs such as xterm and zsh.
- Impact: Local attackers can execute arbitrary code with elevated privileges by exploiting the buffer overflow.
- Remediation: Update to the latest version of NetBSD where the issue is fixed or apply security patches addressing this vulnerability.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs to control locale string
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.6
- Cvss vector: CVSS:2.0/AV:L/AC:L/Au:N/C:P/I:P/A:P
- Epss score: 0.00441
- Epss percentile: 0.39124
- Assignee: [email protected]
- Published at: 2003-04-22T04:00:00Z
- Age in days: 8617
- Modified at: 2026-06-16T21:59:23Z
- Patch available: yes
- References total: 4
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2002-1476
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| http://www.iss.net/security_center/static/10159.php | Patch, Vendor Advisory |
| http://www.securityfocus.com/bid/5724 | Patch, Vendor Advisory |
| ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-012.txt.asc | |
| http://www.osvdb.org/7565 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| netbsd:netbsd | = 1.6 beta, = 1.5.3, = 1.5.2, = 1.5.1, = 1.5, = 1.4 | no | nvd | /v1/products/netbsd/netbsd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exposed hosts: 2159
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports