CVE-2005-3346 Memory corruption in n/a

High 7.2 Published Updated

Local attackers can exploit a buffer overflow in OSH to inject environment variables and execute arbitrary code, potentially escalating privileges.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2005-3346?

CVE-2005-3346 is a high-severity memory corruption vulnerability in n/a, published on 20 Nov 2005. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2005-3346?

It affects 1 product.

Products include Osh Osh.

How do I fix CVE-2005-3346?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2005-3346 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2005-3346 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-rv45-fc47-3rhr.

Is CVE-2005-3346 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free