Debian DSA-316-1 : nethack - buffer overflow, incorrect permissions

medium Nessus Plugin ID 15153

Synopsis

The remote Debian host is missing a security-related update.

Description

The nethack and slashem packages are vulnerable to a buffer overflow exploited via a long '-s' command line option. This vulnerability could be used by an attacker to gain gid 'games' on a system where nethack is installed.

Additionally, some setgid binaries in the nethack package have incorrect permissions, which could allow a user who gains gid 'games' to replace these binaries, potentially causing other users to execute malicious code when they run nethack.

Note that slashem does not contain the file permission problem CAN-2003-0359.

Solution

For the stable distribution (woody) these problems have been fixed in version 3.4.0-3.0woody3.

For the old stable distribution (potato) these problems have been fixed in version 3.3.0-7potato1.

We recommend that you update your nethack package.

For the stable distribution (woody) these problems have been fixed in version 0.0.6E4F8-4.0woody3.

For the old stable distribution (potato) these problems have been fixed in version 0.0.5E7-3potato1.

We recommend that you update your slashem package.

See Also

http://www.debian.org/security/2003/dsa-316

Plugin Details

Severity: Medium

ID: 15153

File Name: debian_DSA-316.nasl

Version: 1.23

Type: local

Agent: unix

Published: 9/29/2004

Updated: 1/4/2021

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.6

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

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:3.0, p-cpe:/a:debian:debian_linux:nethack, cpe:/o:debian:debian_linux:2.2

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/11/2003

Vulnerability Publication Date: 2/9/2003

Reference Information

CVE: CVE-2003-0358, CVE-2003-0359

BID: 6806, 7953

DSA: 316