CVE Catalog

CVE-2005-3346

High
Published: Translated: NVD NIST

Summary

A 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.

Risk Assessment

An attacker with local access can exploit this vulnerability to escalate privileges or execute arbitrary code by manipulating environment variables.

Recommendation

Immediately update OSH to a version later than 1.7-14 that includes a fix for the buffer overflow. If an update is not possible, restrict access to the OSH shell for untrusted users.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS