CVE-2002-1476
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
0.441%
chance of exploitation in the next 30 days
higher than 38.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Timeline
- 2003-04-22Published
- 2004-09-01Published by the CNA04:00 UTC · 498 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| netbsd netbsd | 1.4no fix listed1.5no fix listed1.5.1no fix listed1.5.2no fix listed1.5.3no fix listed(+1 more) | not listednot listednot listednot listednot listed |
References
- http://www.iss.net/security_center/static/10159.php
- http://www.securityfocus.com/bid/5724
- ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-012.txt.asc
- http://www.osvdb.org/7565
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2002-1476'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2002-1476'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2002-1476'curl 'https://api.contrastcyber.com/cve_products/CVE-2002-1476'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).