Lucene search

K
gentooGentoo FoundationGLSA-200606-02
HistoryJun 07, 2006 - 12:00 a.m.

shadow: Privilege escalation

2006-06-0700:00:00
Gentoo Foundation
security.gentoo.org
15

3.7 Low

CVSS2

Access Vector

LOCAL

Access Complexity

HIGH

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:H/Au:N/C:P/I:P/A:P

0.002 Low

EPSS

Percentile

50.8%

Background

shadow provides a set of utilities to deal with user accounts.

Description

When the mailbox is created in useradd, the “open()” function does not receive the three arguments it expects while O_CREAT is present, which leads to random permissions on the created file, before fchmod() is executed.

Impact

Depending on the random permissions given to the mailbox file which is at this time owned by root, a local user may be able to open this file for reading or writing, or even executing it, maybe as the root user.

Workaround

There is no known workaround at this time.

Resolution

All shadow users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=sys-apps/shadow-4.0.15-r2"
OSVersionArchitecturePackageVersionFilename
Gentooanyallsys-apps/shadow< 4.0.15-r2UNKNOWN

3.7 Low

CVSS2

Access Vector

LOCAL

Access Complexity

HIGH

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:H/Au:N/C:P/I:P/A:P

0.002 Low

EPSS

Percentile

50.8%