{"vuid":"VU#427009","idnumber":"427009","name":"GnuPG vulnerable to remote data control","keywords":["GnuPG","information disclosure","remote data control","malformed OpenPGP packets"],"overview":"A vulnerability in GnuPG could allow a remote attacker to execute arbitrary code on an affected system.","clean_desc":"GNU Privacy Guard (GnuPG) is the GNU project's implementation of the OpenPGP standard as defined by RFC2440. OpenPGP messages are processed by GnuPG using data structures called filters that are used in a way similar to pipelines in the shell. Context structures that are usually allocated on the stack and passed to the filter functions are used for communications between these filters. Before the context structure gets deallocated, the OpenPGP data stream that is fed into the filters is closed. In some cases, while decrypting encrypted packets, this may not happen and the filter may use a void context structure filled with garbage that is under the attacker's control. Another context is included in the filter context for use by the low-level decryption. The decryption algorithm is accessed by this context via a function pointer. According to GnuPG: Using malformed OpenPGP packets an attacker is able to modify and dereference a function pointer in GnuPG. The GnuPG advisory notes that both encrypted and signed data could be used as attack vectors for this vulnerability.","impact":"A remote, unauthenticated attacker with the ability to supply specially crafted OpenPGP packets to a vulnerable version of GnuPG may be able to execute arbitrary code on an affected system. The attacker-supplied code would be executed with the privileges of the user or application invoking gpg.","resolution":"Apply a patch or upgrade Patches have been released to address this issue. Please see the Systems Affected section of this document for more details on specific vendors. Users who compile GnuPG from the original distribution are encouraged to upgrade to version 1.4.6 (or later) or apply the patch to upgrade from 1.4.5 to 1.4.6.","workarounds":"Run with limited privileges Running GnuPG with reduced privileges may help mitigate the effects of this vulnerability. Note that this workaround will not prevent exploitation.","sysaffected":"","thanks":"This issue was publicly reported by Werner Koch of the GnuPG project who, in turn, credits Tavis Ormandy of the Gentoo Security Team with its discovery.","author":"This document was written by Chad R Dougherty and Chris Taschner.","public":["http://lists.gnupg.org/pipermail/gnupg-announce/2006q4/000245.html","http://secunia.com/advisories/23245/","http://lists.gnupg.org/pipermail/gnupg-announce/2006q4/000491.html","http://secunia.com/advisories/23329/","http://secunia.com/advisories/23269/","http://secunia.com/advisories/23284/","http://secunia.com/advisories/23250/","http://secunia.com/advisories/23299/","http://secunia.com/advisories/23303/","http://secunia.com/advisories/23290/","http://secunia.com/advisories/23259/","http://secunia.com/advisories/24047/"],"cveids":["CVE-2006-6235"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2006-12-06T20:09:11Z","publicdate":"2006-12-06T00:00:00Z","datefirstpublished":"2006-12-18T16:54:21Z","dateupdated":"2007-02-06T20:46:15Z","revision":44,"vrda_d1_directreport":"0","vrda_d1_population":"3","vrda_d1_impact":"3","cam_widelyknown":"15","cam_exploitation":"0","cam_internetinfrastructure":"3","cam_population":"8","cam_impact":"15","cam_easeofexploitation":"15","cam_attackeraccessrequired":"15","cam_scorecurrent":"9.1125","cam_scorecurrentwidelyknown":"11.64375","cam_scorecurrentwidelyknownexploited":"21.76875","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":9.1125,"vulnote":null}