GLSA-200409-18 : cdrtools: Local root vulnerability in cdrecord if set SUID root

high Nessus Plugin ID 14746

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-200409-18 (cdrtools: Local root vulnerability in cdrecord if set SUID root)

Max Vozeler discovered that the cdrecord utility, when set to SUID root, fails to drop root privileges before executing a user-supplied RSH program.
By default, Gentoo does not ship the cdrecord utility as SUID root and therefore is not vulnerable. However, many users (and CD-burning front-ends) set this manually after installation.
Impact :

A local attacker could specify a malicious program using the $RSH environment variable and have it executed by the SUID cdrecord, resulting in root privileges escalation.
Workaround :

As a workaround, you could remove the SUID rights from your cdrecord utility :
# chmod a-s /usr/bin/cdrecord

Solution

All cdrtools users should upgrade to the latest version:
# emerge sync # emerge -pv '>=app-cdr/cdrtools-2.01_alpha37-r1' # emerge '>=app-cdr/cdrtools-2.01_alpha37-r1'

See Also

https://security.gentoo.org/glsa/200409-18

Plugin Details

Severity: High

ID: 14746

File Name: gentoo_GLSA-200409-18.nasl

Version: 1.16

Type: local

Published: 9/16/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.2

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

Vulnerability Information

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

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

Patch Publication Date: 9/14/2004

Vulnerability Publication Date: 8/31/2004

Reference Information

CVE: CVE-2004-0806

GLSA: 200409-18