CVE-2004-0806

cdrecord <2.01 - Privilege Escalation

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2004-0806. PoCs published by Max Vozeler, I)ruid.

AI-analyzed exploit summary This exploit leverages a local privilege escalation vulnerability in cdrecord's readcd utility by manipulating the RSH environment variable to execute arbitrary code as root. It compiles two C programs to set SUID permissions on a shell and then triggers the vulnerability via the readcd command.

Description

cdrecord in the cdrtools package before 2.01, when installed setuid root, does not properly drop privileges before executing a program specified in the RSH environment variable, which allows local users to gain privileges.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Max Vozeler · bashlocallinux
https://www.exploit-db.com/exploits/469

This exploit leverages a local privilege escalation vulnerability in cdrecord's readcd utility by manipulating the RSH environment variable to execute arbitrary code as root. It compiles two C programs to set SUID permissions on a shell and then triggers the vulnerability via the readcd command.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: cdrecord-2.01-0.a27.2mdk
No auth needed
Prerequisites: Local access to the target system · Presence of vulnerable cdrecord version · Write permissions in /tmp
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by I)ruid · bashlocallinux
https://www.exploit-db.com/exploits/438

This exploit leverages a vulnerability in cdrecord where it executes the $RSH environment variable before dropping privileges. It creates a SUID bash shell by exploiting the insecure execution path.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: cdrecord (versions before the fix for CVE-2004-0806)
No auth needed
Prerequisites: cdrecord installed with SUID bit set · ability to set environment variables
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (12)

Core 12
Core References
Exploit, Patch vdb-entry x_refsource_bid
http://www.securityfocus.org/bid/11075
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1011091
Vendor Advisory vendor-advisory x_refsource_mandrake
http://www.mandriva.com/security/advisories?name=MDKSA-2004:091
Vendor Advisory vendor-advisory x_refsource_sgi
ftp://patches.sgi.com/support/free/security/advisories/20060401-01-U
Exploit mailing-list x_refsource_bugtraq
http://seclists.org/lists/bugtraq/2004/Sep/0097.html
Issue Tracking vendor-advisory x_refsource_fedora
https://bugzilla.fedora.us/show_bug.cgi?id=2058
Third Party Advisory, US Government Resource third-party-advisory x_refsource_cert-vn
http://www.kb.cert.org/vuls/id/700326
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/19532
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9805
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/12481/
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/17303

Scores

EPSS 0.0173
EPSS Percentile 74.6%

Details

Status published
Products (2)
cdrtools/cdrecord 1.11
cdrtools/cdrecord 2.0
Published Dec 31, 2004
Tracked Since Feb 18, 2026