{"vuid":"VU#846832","idnumber":"846832","name":"glibc unsetenv fails to properly handle environment variables passed more than once to a program","keywords":["glibc","unsetenv"],"overview":"The glibc implementation of unsetenv() fails to properly remove one of two successive occurrences of the same environment variable if the variable is redundently passed to a program.","clean_desc":"The glibc implementation of unsetenv(), if called to remove an environment variable that occurs two times in succession on the environment variable list, will fail to remove one of the occurences due to an off-by-one error in the implementation.","impact":"An attacker can pass multiple occurrences of a sensitive environment variable (such as LD_LIBRARY_PATH, LD_PRELOAD, etc.) to a setuid root program. Even if glibc forces that program to ignore these variables, they may be passed along to a program called from the setuid root program. Using this indirect execution, an attacker might cause malicious code to be executed as root.","resolution":"Apply vendor patches; see the Systems Affected section below.","workarounds":"","sysaffected":"","thanks":"The original report of this vulnerability was by Tymm Twillman <tymm@coe.missouri.edu>.","author":"This document was last modified by Tim Shimeall.","public":["http://www.securityfocus.com/bid/648","http://www.securityfocus.com/bid/1639"],"cveids":["CVE-2000-0824"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2001-05-14T15:33:28Z","publicdate":"1999-09-17T00:00:00Z","datefirstpublished":"2001-05-17T13:41:13Z","dateupdated":"2002-09-13T17:19:04Z","revision":9,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"16","cam_exploitation":"1","cam_internetinfrastructure":"4","cam_population":"10","cam_impact":"18","cam_easeofexploitation":"10","cam_attackeraccessrequired":"10","cam_scorecurrent":"7.0875","cam_scorecurrentwidelyknown":"8.4375","cam_scorecurrentwidelyknownexploited":"14.85","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":7.0875,"vulnote":null}