GLSA-200903-39 : pam_krb5: Privilege escalation

This script is Copyright (C) 2009-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200903-39
(pam_krb5: Privilege escalation)

The following vulnerabilities were discovered:
pam_krb5
does not properly initialize the Kerberos libraries for setuid use
(CVE-2009-0360).
Derek Chan reported that calls to
pam_setcred() are not properly handled when running setuid
(CVE-2009-0361).

Impact :

A local attacker could set an environment variable to point to a
specially crafted Kerberos configuration file and launch a PAM-based
setuid application to elevate privileges, or change ownership and
overwrite arbitrary files.

Workaround :

There is no known workaround at this time.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200903-39.xml

Solution :

All pam_krb5 users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=sys-auth/pam_krb5-3.12'

Risk factor :

Medium / CVSS Base Score : 6.2
(CVSS2#AV:L/AC:H/Au:N/C:C/I:C/A:C)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 36027 (gentoo_GLSA-200903-39.nasl)

Bugtraq ID:

CVE ID: CVE-2009-0360
CVE-2009-0361