CVE-2005-3346: Buffer overflow in the environment variable substitution code in main.c in OSH 1.7-14 allows local users to in
CVE-2005-3346 is a high-severity flaw (CVSS 7.2) affecting osh. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Buffer overflow in the environment variable substitution code in main.c in OSH 1.7-14 allows local users to inject arbitrary environment variables, such as LD_PRELOAD, via pathname arguments of the form "$VAR/EVAR=arg", which cause the EVAR portion to be appended to a buffer returned by a getenv function call.
Why this priority
- High severity
- Public exploit reference
- On your watchlist
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 7.2 (High) |
| EPSS exploit chance | 0.8% (top 42%) |
| CISA exploited list | No |
| Published | 2005-11-20 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2005-3346?
osh: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2005-3346 being exploited?
CVE-2005-3346 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2005-3346 affect?
CVE-2005-3346 affects osh. Severity is high (CVSS 7.2). Buffer overflow in the environment variable substitution code in main.c in OSH 1.7-14 allows local users to inject arbitrary environment variables, such as LD_PRELOAD, via pathname arguments of the form "$VAR/EVAR=arg", which cause the EVAR
How urgent is CVE-2005-3346?
Priority 50/100. High severity; Public exploit reference; On your watchlist
Related CVEs
- CVE-2005-3533 HIGH 7.2 UPGRADE Buffer overflow in OSH before 1.7-15 allows local users to execute arbitrary code via a long current working d
- CVE-2003-0452 MEDIUM 4.6 UPGRADE Buffer overflows in osh before 1.7-11 allow local users to execute arbitrary code and bypass shell restriction