Lucene search

K
osvGoogleOSV:DSA-364
HistoryAug 04, 2003 - 12:00 a.m.

man-db - buffer overflows, arbitrary command execution

2003-08-0400:00:00
Google
osv.dev
6

4.6 Medium

CVSS2

Access Vector

LOCAL

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

man-db provides the standard man(1) command on Debian systems. During
configuration of this package, the administrator is asked whether
man(1) should run setuid to a dedicated user (“man”) in order to
provide a shared cache of preformatted manual pages. The default is
for man(1) NOT to be setuid, and in this configuration no known
vulnerability exists. However, if the user explicitly requests setuid
operation, a local attacker could exploit either of the following bugs to
execute arbitrary code as the “man” user.

Again, these vulnerabilities do not affect the default configuration,
where man is not setuid.

  • CAN-2003-0620: Multiple buffer overflows in man-db 2.4.1 and
    earlier, when installed setuid, allow local users to gain privileges
    via (1) MANDATORY_MANPATH, MANPATH_MAP, and MANDB_MAP arguments to
    add_to_dirlist in manp.c, (2) a long pathname to ult_src in
    ult_src.c, (3) a long .so argument to test_for_include in ult_src.c,
    (4) a long MANPATH environment variable, or (5) a long PATH
    environment variable.
  • CAN-2003-0645: Certain DEFINE directives in ~/.manpath, which
    contained commands to be executed, would be honored even when
    running setuid, allowing any user to execute commands as the
    “man” user.

For the current stable distribution (woody), these problems have been
fixed in version 2.3.20-18.woody.4.

For the unstable distribution (sid), these problems have been fixed in
version 2.4.1-13.

We recommend that you update your man-db package.

4.6 Medium

CVSS2

Access Vector

LOCAL

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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