GLSA-200903-39 : pam_krb5: Privilege escalation

medium Nessus Plugin ID 36027

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.

Solution

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

See Also

https://security.gentoo.org/glsa/200903-39

Plugin Details

Severity: Medium

ID: 36027

File Name: gentoo_GLSA-200903-39.nasl

Version: 1.17

Type: local

Published: 3/27/2009

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.2

Temporal Score: 4.9

Vector: CVSS2#AV:L/AC:H/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:pam_krb5, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/25/2009

Reference Information

CVE: CVE-2009-0360, CVE-2009-0361

BID: 33740, 33741

CWE: 264, 287

GLSA: 200903-39